Skip to content

Commit ae4c04b

Browse files
committed
Send attributes to Span destination only
1 parent 41e81da commit ae4c04b

File tree

1 file changed

+1
-2
lines changed
  • lib/new_relic/agent/opentelemetry/trace

1 file changed

+1
-2
lines changed

lib/new_relic/agent/opentelemetry/trace/span.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ module Agent
77
module OpenTelemetry
88
module Trace
99
class Span < ::OpenTelemetry::Trace::Span
10-
STATUS_DESTINATIONS = AttributeFilter::DST_SPAN_EVENTS | AttributeFilter::DST_TRANSACTION_SEGMENTS
1110
attr_accessor :finishable
1211
attr_reader :status
1312

@@ -65,7 +64,7 @@ def status=(new_status)
6564
attrs['status.description'] = new_status.description unless new_status.description.empty?
6665

6766
txn = finishable.is_a?(Transaction) ? finishable : finishable.transaction
68-
attrs.each { |k, v| txn.add_agent_attribute(k, v, STATUS_DESTINATIONS) }
67+
attrs.each { |k, v| txn.add_agent_attribute(k, v, AttributeFilter::DST_SPAN_EVENTS) }
6968
end
7069

7170
INVALID = new(span_context: ::OpenTelemetry::Trace::SpanContext::INVALID)

0 commit comments

Comments
 (0)