Class: SidekiqPublisher::Instrumenter
- Inherits:
-
Object
- Object
- SidekiqPublisher::Instrumenter
- Defined in:
- lib/sidekiq_publisher/instrumenter.rb
Constant Summary collapse
- NAMESPACE =
"sidekiq_publisher"
Instance Method Summary collapse
Instance Method Details
#instrument(event_name, payload = {}, &block) ⇒ Object
9 10 11 |
# File 'lib/sidekiq_publisher/instrumenter.rb', line 9 def instrument(event_name, payload = {}, &block) ActiveSupport::Notifications.instrument("#{event_name}.#{NAMESPACE}", payload, &block) end |