Sha256: dfd1fd4dfb105a7f489f8f948a857f40dba02f066c9334dbd8ea61cfdf73b0fb

Contents?: true

Size: 545 Bytes

Versions: 10

Compression:

Stored size: 545 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 Segment

        def segment_complete
          record_span_event
        end

        def record_span_event
          tracer = ::NewRelic::Agent.agent.infinite_tracer
          tracer << Proc.new { SpanEventPrimitive.for_segment self }
        end
      end
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
newrelic-infinite_tracing-8.1.0 lib/infinite_tracing/agent_integrations/segment.rb
newrelic-infinite_tracing-8.0.0 lib/infinite_tracing/agent_integrations/segment.rb
newrelic-infinite_tracing-7.2.0 lib/infinite_tracing/agent_integrations/segment.rb
newrelic-infinite_tracing-7.1.0 lib/infinite_tracing/agent_integrations/segment.rb
newrelic-infinite_tracing-7.0.0 lib/infinite_tracing/agent_integrations/segment.rb
newrelic-infinite_tracing-6.15.0 lib/infinite_tracing/agent_integrations/segment.rb
newrelic-infinite_tracing-6.14.0 lib/infinite_tracing/agent_integrations/segment.rb
newrelic-infinite_tracing-6.13.1 lib/infinite_tracing/agent_integrations/segment.rb
newrelic-infinite_tracing-6.13.0 lib/infinite_tracing/agent_integrations/segment.rb
newrelic-infinite_tracing-6.12.0.367 lib/infinite_tracing/agent_integrations/segment.rb