lib/new_relic/agent/transaction/segment.rb in newrelic_rpm-8.1.0 vs lib/new_relic/agent/transaction/segment.rb in newrelic_rpm-8.2.0

- old
+ new

@@ -77,9 +77,12 @@ def segment_complete record_span_event if transaction.sampled? end def record_span_event + # don't record a span event if the transaction is ignored + return if transaction.ignore? + aggregator = ::NewRelic::Agent.agent.span_event_aggregator priority = transaction.priority aggregator.record(priority: priority) do SpanEventPrimitive.for_segment(self)