Method: NewRelic::Agent::DistributedTraceMetrics#prefix_for_metric
- Defined in:
- lib/new_relic/agent/distributed_tracing/distributed_trace_metrics.rb
permalink #prefix_for_metric(name, transaction, payload) ⇒ Object
[View source]
35 36 37 38 39 40 41 42 43 44 45 |
# File 'lib/new_relic/agent/distributed_tracing/distributed_trace_metrics.rb', line 35 def prefix_for_metric(name, transaction, payload) if payload "#{name}/" \ "#{payload.parent_type}/" \ "#{payload.parent_account_id}/" \ "#{payload.parent_app_id}/" \ "#{transaction.distributed_tracer.caller_transport_type}" else UNKNOWN_CALLER_PREFIX % [name, transaction.distributed_tracer.caller_transport_type] end end |