Sha256: cca9991e5b2a9d9fcec4b6a7c2f238de99dc7eb72a1d9825ec0b3936db187844

Contents?: true

Size: 616 Bytes

Versions: 2

Compression:

Stored size: 616 Bytes

Contents

# encoding: utf-8
# This file is distributed under New Relic's license terms.
# See https://github.com/newrelic/newrelic-ruby-agent/blob/main/LICENSE for complete details.
# frozen_string_literal: true

module NewRelic
  module Agent
    class Transaction
      class ExternalRequestSegment
        def record_span_event
          # don't record a span event if the transaction is ignored
          return if transaction.ignore?

          tracer = ::NewRelic::Agent.agent.infinite_tracer
          tracer << Proc.new { SpanEventPrimitive.for_external_request_segment(self) }
        end
      end
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
newrelic-infinite_tracing-8.10.1 lib/infinite_tracing/agent_integrations/external_request_segment.rb
newrelic-infinite_tracing-8.10.0 lib/infinite_tracing/agent_integrations/external_request_segment.rb