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

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

Overview

Defines instrumentation for leave_group.consumer.kafka event

Constant Summary collapse

EVENT_NAME =
'leave_group.consumer.kafka'.freeze

Class Method Summary collapse

Methods included from ConsumerEvent

process

Methods included from ConsumerGroupEvent

process

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

included

Class Method Details

.span_nameObject



22
23
24
# File 'lib/datadog/tracing/contrib/kafka/events/consumer_group/leave_group.rb', line 22

def span_name
  Ext::SPAN_CONSUMER_LEAVE_GROUP
end

.span_optionsObject



26
27
28
# File 'lib/datadog/tracing/contrib/kafka/events/consumer_group/leave_group.rb', line 26

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