Class: HTTP::Features::Instrumentation::NullInstrumenter
- Inherits:
-
Object
- Object
- HTTP::Features::Instrumentation::NullInstrumenter
- Defined in:
- lib/http/features/instrumentation.rb
Instance Method Summary collapse
- #finish(_name, _payload) ⇒ Object
- #instrument(name, payload = {}) ⇒ Object
- #start(_name, _payload) ⇒ Object
Instance Method Details
#finish(_name, _payload) ⇒ Object
63 64 65 |
# File 'lib/http/features/instrumentation.rb', line 63 def finish(_name, _payload) true end |
#instrument(name, payload = {}) ⇒ Object
50 51 52 53 54 55 56 57 |
# File 'lib/http/features/instrumentation.rb', line 50 def instrument(name, payload = {}) start(name, payload) begin yield payload if block_given? ensure finish name, payload end end |
#start(_name, _payload) ⇒ Object
59 60 61 |
# File 'lib/http/features/instrumentation.rb', line 59 def start(_name, _payload) true end |