Module: Moped::Instrumentable
- Included in:
- Node
- Defined in:
- lib/moped/instrumentable.rb,
lib/moped/instrumentable/log.rb,
lib/moped/instrumentable/noop.rb
Defined Under Namespace
Constant Summary collapse
- TOPIC =
The name of the topic of operations for Moped.
"query.moped"
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.
15 16 17 |
# File 'lib/moped/instrumentable.rb', line 15 def instrumenter @instrumenter end |
Instance Method Details
#instrument(name, payload = {}, &block) ⇒ Object
Instrument and execute the provided block.
30 31 32 |
# File 'lib/moped/instrumentable.rb', line 30 def instrument(name, payload = {}, &block) instrumenter.instrument(name, payload, &block) end |