Module: Bones::RPC::Instrumentable
- Included in:
- Node
- Defined in:
- lib/bones/rpc/instrumentable.rb,
lib/bones/rpc/instrumentable/log.rb,
lib/bones/rpc/instrumentable/noop.rb
Defined Under Namespace
Constant Summary collapse
- TOPIC =
The name of the topic of operations for Bones::RPC.
"bones-rpc.operations"
- WARN =
Topic for warning instrumentation.
"bones-rpc.warn"
Instance Attribute Summary collapse
-
#instrumenter ⇒ Object
Returns the value of attribute instrumenter.
Instance Method Summary collapse
-
#instrument(name, payload = {}, &block) ⇒ Object
Instrument and execute the provided block.
Instance Attribute Details
#instrumenter ⇒ Object
Returns the value of attribute instrumenter.
21 22 23 |
# File 'lib/bones/rpc/instrumentable.rb', line 21 def instrumenter @instrumenter end |
Instance Method Details
#instrument(name, payload = {}, &block) ⇒ Object
Instrument and execute the provided block.
36 37 38 |
# File 'lib/bones/rpc/instrumentable.rb', line 36 def instrument(name, payload = {}, &block) instrumenter.instrument(name, payload, &block) end |