Sha256: 3ae4837f94f8ba604efecb37ebe7f2d671963bef477542a800df35fac0e764ae

Contents?: true

Size: 734 Bytes

Versions: 13

Compression:

Stored size: 734 Bytes

Contents

# frozen_string_literal: true

require_relative '../ext'
require_relative '../event'

module Datadog
  module Tracing
    module Contrib
      module Racecar
        module Events
          # Defines instrumentation for main_loop.racecar event
          module Consume
            include Racecar::Event

            EVENT_NAME = 'main_loop.racecar'

            module_function

            def event_name
              self::EVENT_NAME
            end

            def span_name
              Ext::SPAN_CONSUME
            end

            def span_options
              super.merge(tags: { Tracing::Metadata::Ext::TAG_OPERATION => Ext::TAG_OPERATION_CONSUME })
            end
          end
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
datadog-2.9.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
datadog-2.8.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
datadog-2.7.1 lib/datadog/tracing/contrib/racecar/events/consume.rb
datadog-2.7.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
datadog-2.6.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
datadog-2.5.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
datadog-2.4.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
datadog-2.3.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
datadog-2.2.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
datadog-2.1.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
datadog-2.0.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
datadog-2.0.0.beta2 lib/datadog/tracing/contrib/racecar/events/consume.rb
datadog-2.0.0.beta1 lib/datadog/tracing/contrib/racecar/events/consume.rb