Module: Datadog::Tracing::Contrib::Kafka::Events::ConsumerGroup::SyncGroup

Extended by:
ConsumerEvent, ConsumerGroupEvent
Includes:
Datadog::Tracing::Contrib::Kafka::Event
Defined in:
lib/datadog/tracing/contrib/kafka/events/consumer_group/sync_group.rb

Overview

Defines instrumentation for sync_group.consumer.kafka event

Constant Summary collapse

EVENT_NAME =
'sync_group.consumer.kafka'

Class Method Summary collapse

Methods included from ConsumerEvent

on_start

Methods included from ConsumerGroupEvent

on_start

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

included

Class Method Details

.span_nameObject



24
25
26
# File 'lib/datadog/tracing/contrib/kafka/events/consumer_group/sync_group.rb', line 24

def span_name
  Ext::SPAN_CONSUMER_SYNC_GROUP
end

.span_optionsObject



28
29
30
# File 'lib/datadog/tracing/contrib/kafka/events/consumer_group/sync_group.rb', line 28

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