Method: NewRelic::Agent::Instrumentation::ActionControllerSubscriber#queue_start

Defined in:
lib/new_relic/agent/instrumentation/action_controller_subscriber.rb

#queue_start(request) ⇒ Object

[View source]

92
93
94
95
96
97
# File 'lib/new_relic/agent/instrumentation/action_controller_subscriber.rb', line 92

def queue_start(request)
  # the following line needs else branch coverage
  if request && request.respond_to?(:env) # rubocop:disable Style/SafeNavigation
    QueueTime.parse_frontend_timestamp(request.env, Process.clock_gettime(Process::CLOCK_REALTIME))
  end
end