Class: RailsMetrics::VoidInstrumenter
- Inherits:
-
ActiveSupport::Notifications::Instrumenter
- Object
- ActiveSupport::Notifications::Instrumenter
- RailsMetrics::VoidInstrumenter
- Defined in:
- lib/rails_metrics/async_consumer.rb
Overview
An instrumenter that does not send notifications. This is used in the AsyncQueue so saving events does not send any notifications, not even for logging.
Instance Method Summary collapse
Instance Method Details
#instrument(name, payload = {}) {|payload| ... } ⇒ Object
8 9 10 |
# File 'lib/rails_metrics/async_consumer.rb', line 8 def instrument(name, payload={}) yield(payload) if block_given? end |