Method: NewRelic::Agent::Transaction#assign_segment_dt_attributes
- Defined in:
- lib/new_relic/agent/transaction.rb
permalink #assign_segment_dt_attributes ⇒ Object
579 580 581 582 583 584 |
# File 'lib/new_relic/agent/transaction.rb', line 579 def assign_segment_dt_attributes dt_payload = distributed_tracer.trace_state_payload || distributed_tracer.distributed_trace_payload parent_attributes = {} DistributedTraceAttributes.copy_parent_attributes(self, dt_payload, parent_attributes) parent_attributes.each { |k, v| initial_segment.add_agent_attribute(k, v) } end |