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
64 65 66 |
# File 'lib/http/features/instrumentation.rb', line 64 def finish(_name, _payload) true end |
#instrument(name, payload = {}) ⇒ Object
51 52 53 54 55 56 57 58 |
# File 'lib/http/features/instrumentation.rb', line 51 def instrument(name, payload = {}) start(name, payload) begin yield payload if block_given? ensure finish name, payload end end |
#start(_name, _payload) ⇒ Object
60 61 62 |
# File 'lib/http/features/instrumentation.rb', line 60 def start(_name, _payload) true end |