Class: ChConnect::NullInstrumenter

Inherits:
Object
  • Object
show all
Defined in:
lib/ch_connect/null_instrumenter.rb

Overview

Null instrumenter that does nothing. This is the default instrumenter used when no custom instrumenter is configured.

Instance Method Summary collapse

Instance Method Details

#instrument(_name, _payload = {}) { ... } ⇒ Object

Executes block without any instrumentation.

Parameters:

  • _name (String)

    event name (ignored)

  • _payload (Hash) (defaults to: {})

    event payload (ignored)

Yields:

  • block to execute

Returns:

  • (Object)

    result of the block



13
14
15
# File 'lib/ch_connect/null_instrumenter.rb', line 13

def instrument(_name, _payload = {})
  yield
end