Module: Datadog::Tracing::Contrib::Racecar::Events::Consume

Includes:
Datadog::Tracing::Contrib::Racecar::Event
Defined in:
lib/datadog/tracing/contrib/racecar/events/consume.rb

Overview

Defines instrumentation for main_loop.racecar event

Constant Summary collapse

EVENT_NAME =
'main_loop.racecar'.freeze

Class Method Summary collapse

Methods included from Datadog::Tracing::Contrib::Racecar::Event

included

Class Method Details

.event_nameObject



17
18
19
# File 'lib/datadog/tracing/contrib/racecar/events/consume.rb', line 17

def event_name
  self::EVENT_NAME
end

.span_nameObject



21
22
23
# File 'lib/datadog/tracing/contrib/racecar/events/consume.rb', line 21

def span_name
  Ext::SPAN_CONSUME
end

.span_optionsObject



25
26
27
# File 'lib/datadog/tracing/contrib/racecar/events/consume.rb', line 25

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