Module: Datadog::Tracing::Contrib::Racecar::Events::Batch

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

Overview

Defines instrumentation for process_batch.racecar event

Constant Summary collapse

EVENT_NAME =
'process_batch.racecar'

Class Method Summary collapse

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

included

Class Method Details

.event_nameObject



19
20
21
# File 'lib/datadog/tracing/contrib/racecar/events/batch.rb', line 19

def event_name
  self::EVENT_NAME
end

.span_nameObject



23
24
25
# File 'lib/datadog/tracing/contrib/racecar/events/batch.rb', line 23

def span_name
  Ext::SPAN_BATCH
end

.span_optionsObject



27
28
29
30
31
32
# File 'lib/datadog/tracing/contrib/racecar/events/batch.rb', line 27

def span_options
  super.merge(
    tags: { Tracing::Metadata::Ext::TAG_OPERATION => Ext::TAG_OPERATION_BATCH,
            Tracing::Metadata::Ext::TAG_KIND => Tracing::Metadata::Ext::SpanKind::TAG_CONSUMER }
  )
end