Class: HTTP::Features::Instrumentation::NullInstrumenter
- Inherits:
-
Object
- Object
- HTTP::Features::Instrumentation::NullInstrumenter
- Defined in:
- lib/http/features/instrumentation.rb
Overview
No-op instrumenter used as default when none is provided
Instance Method Summary collapse
-
#finish(_name, _payload) ⇒ nil
Finishes an instrumentation event.
-
#instrument(name, payload = {}) ⇒ Object
Instruments an event with a name and payload.
-
#start(_name, _payload) ⇒ nil
Starts an instrumentation event.
Instance Method Details
#finish(_name, _payload) ⇒ nil
Finishes an instrumentation event
145 |
# File 'lib/http/features/instrumentation.rb', line 145 def finish(_name, _payload); end |
#instrument(name, payload = {}) ⇒ Object
Instruments an event with a name and payload
116 117 118 119 120 121 122 123 |
# File 'lib/http/features/instrumentation.rb', line 116 def instrument(name, payload = {}) start(name, payload) begin yield payload if block_given? ensure finish name, payload end end |
#start(_name, _payload) ⇒ nil
Starts an instrumentation event
134 |
# File 'lib/http/features/instrumentation.rb', line 134 def start(_name, _payload); end |