Class: Freno::Throttler::Instrumenter::Noop

Inherits:
Object
  • Object
show all
Defined in:
lib/freno/throttler/instrumenter.rb

Overview

The Noop instrumenter is the ‘:instrumenter` used by default in the Throttler

It does nothing but yielding the control to the block given if it is provided.

Class Method Summary collapse

Class Method Details

.instrument(_event_name, payload = {}) {|payload| ... } ⇒ Object

Yields:

  • (payload)


21
22
23
# File 'lib/freno/throttler/instrumenter.rb', line 21

def self.instrument(_event_name, payload = {})
  yield payload if block_given?
end