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



50
51
52
# File 'lib/http/features/instrumentation.rb', line 50

def finish(_name, _payload)
  true
end

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



37
38
39
40
41
42
43
44
# File 'lib/http/features/instrumentation.rb', line 37

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

#start(_name, _payload) ⇒ Object



46
47
48
# File 'lib/http/features/instrumentation.rb', line 46

def start(_name, _payload)
  true
end