class Bones::RPC::Instrumentable::Noop

Does not instrument anything, just yields.

@since 0.0.1

Public Class Methods

instrument(name, payload = {}) { |payload| ... } click to toggle source

Do not instrument anything.

@example Do not instrument.

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

@param [ String ] name The name of the operation. @param [ Hash ] payload The payload.

@return [ Object ] The result of the yield.

@since 0.0.1

# File lib/bones/rpc/instrumentable/noop.rb, line 26
def instrument(name, payload = {})
  yield payload if block_given?
end