File tree Expand file tree Collapse file tree 1 file changed +1
-2
lines changed
lib/new_relic/agent/opentelemetry/trace Expand file tree Collapse file tree 1 file changed +1
-2
lines changed Original file line number Diff line number Diff 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 )
You can’t perform that action at this time.
0 commit comments