module Bones::RPC::Instrumentable

Constants

TOPIC

The name of the topic of operations for Bones::RPC.

@since 0.0.1

WARN

Topic for warning instrumentation.

@since 0.0.1

Attributes

instrumenter[R]

@!attribute instrumenter

@return [ Object ] The instrumenter

Public Instance Methods

instrument(name, payload = {}, &block) click to toggle source

Instrument and execute the provided block.

@example Instrument and execute.

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.rb, line 36
def instrument(name, payload = {}, &block)
  instrumenter.instrument(name, payload, &block)
end