Class: HTTP::Features::Instrumentation::NullInstrumenter

Inherits:
Object
  • Object
show all
Defined in:
lib/http/features/instrumentation.rb

Instance Method Summary collapse

Instance Method Details

#finish(_name, _payload) ⇒ Object


58
59
60
# File 'lib/http/features/instrumentation.rb', line 58

def finish(_name, _payload)
  true
end

#instrument(name, payload = {}) ⇒ Object


45
46
47
48
49
50
51
52
# File 'lib/http/features/instrumentation.rb', line 45

def instrument(name, payload = {})
  start(name, payload)
  begin
    yield payload if block_given?
  ensure
    finish name, payload
  end
end

#start(_name, _payload) ⇒ Object


54
55
56
# File 'lib/http/features/instrumentation.rb', line 54

def start(_name, _payload)
  true
end