Class: Webmachine::Trace::Listener

Inherits:
Object
  • Object
show all
Defined in:
lib/webmachine/trace/listener.rb

Instance Method Summary collapse

Instance Method Details

#call(name, payload) ⇒ Object


4
5
6
7
8
9
# File 'lib/webmachine/trace/listener.rb', line 4

def call(name, payload)
  key = payload.fetch(:trace_id)
  trace = payload.fetch(:trace)

  Webmachine::Trace.record(key, trace)
end