Class: AppMap::Rails::ActionHandler::HTTPServerRequest

Inherits:
Object
  • Object
show all
Includes:
ContextKey
Defined in:
lib/appmap/rails/action_handler.rb

Defined Under Namespace

Classes: Call

Instance Method Summary collapse

Methods included from ContextKey

#context_key

Instance Method Details

#call(_, started, finished, _, payload) ⇒ Object

(name, started, finished, unique_id, payload)



49
50
51
52
53
# File 'lib/appmap/rails/action_handler.rb', line 49

def call(_, started, finished, _, payload) # (name, started, finished, unique_id, payload)
  event = Call.new(__FILE__, __LINE__, payload)
  Thread.current[context_key] = Context.new(event.id, Time.now)
  AppMap.tracing.record_event(event)
end