Class: Bones::RPC::Instrumentable::Noop

Inherits:
Object
  • Object
show all
Defined in:
lib/bones/rpc/instrumentable/noop.rb

Overview

Does not instrument anything, just yields.

Since:

  • 2.0.0

Class Method Summary collapse

Class Method Details

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

Do not instrument anything.

Examples:

Do not instrument.

Noop.instrument("bones-rpc.noop") do
  node.connect
end

Parameters:

  • name (String)

    The name of the operation.

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

    The payload.

Yields:

  • (payload)

Returns:

  • (Object)

    The result of the yield.

Since:

  • 2.0.0


26
27
28
# File 'lib/bones/rpc/instrumentable/noop.rb', line 26

def instrument(name, payload = {})
  yield payload if block_given?
end