Method: NewRelic::Agent::Instrumentation::ActionControllerSubscriber#start_transaction_or_segment

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

#start_transaction_or_segment(payload, request, controller_class) ⇒ Object

[View source]

47
48
49
50
51
52
53
# File 'lib/new_relic/agent/instrumentation/action_controller_subscriber.rb', line 47

def start_transaction_or_segment(payload, request, controller_class)
  Tracer.start_transaction_or_segment(
    name: format_metric_name(payload[:action], controller_class),
    category: :controller,
    options: tracer_options(payload, request, controller_class)
  )
end