Sha256: a6940c380c4fb1a9956e219cc8718d75fd5149fdfd953ae67bc1565cb82c0ae8

Contents?: true

Size: 603 Bytes

Versions: 2

Compression:

Stored size: 603 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 DatastoreSegment
        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_datastore_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/datastore_segment.rb
newrelic-infinite_tracing-8.10.0 lib/infinite_tracing/agent_integrations/datastore_segment.rb