Sha256: 55c1bc22862279d05037f5b9b2341bc79059cbe3406dbbeec4b297a0a9213276

Contents?: true

Size: 710 Bytes

Versions: 24

Compression:

Stored size: 710 Bytes

Contents

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'.freeze

            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

24 entries across 24 versions & 1 rubygems

Version Path
ddtrace-1.23.3 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.23.2 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.23.1 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.22.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.21.1 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.21.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.20.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.19.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.18.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.17.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.16.2 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.16.1 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.16.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.15.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.14.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.13.1 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.13.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.12.1 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.12.0 lib/datadog/tracing/contrib/racecar/events/consume.rb
ddtrace-1.11.1 lib/datadog/tracing/contrib/racecar/events/consume.rb