Method: NewRelic::Agent::Instrumentation::ActionViewSubscriber#start_segment
- Defined in:
- lib/new_relic/agent/instrumentation/action_view_subscriber.rb
permalink #start_segment(name, id, payload) ⇒ Object
[View source]
13 14 15 16 17 18 19 20 21 22 23 |
# File 'lib/new_relic/agent/instrumentation/action_view_subscriber.rb', line 13 def start_segment(name, id, payload) parent = segment_stack[id].last metric_name = format_metric_name(name, payload, parent) event = ActionViewEvent.new(metric_name, payload[:identifier]) if recordable?(name, metric_name) event.finishable = Tracer.start_segment(name: metric_name) end push_segment(id, event) end |