-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use instrument for coach.handler.finish event
This change uses ActiveSupport::Notifications.instrument to time and publish the event for coach.handler.finish. This makes Coach consistent with how it handles handler and middleware events. Such a change should not break any integrations, and can therefore be included in a patch. The upshot of this is that integrating Coach with third-party instrumentation tools then becomes a small bit easier. This is because using #instrument over #publish will trigger start and end events under the same key, if your subscriber is listening appropriately.
- Loading branch information
1 parent
d1b22ae
commit 227947c
Showing
1 changed file
with
21 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters