Sha256: 3da720955e80acddf7a3b124da6032d19f15c89b7165ab5ee012674e72ad59bb

Contents?: true

Size: 951 Bytes

Versions: 13

Compression:

Stored size: 951 Bytes

Contents

# frozen_string_literal: true

require_relative '../../ext'
require_relative '../../event'
require_relative '../../consumer_event'
require_relative '../../consumer_group_event'

module Datadog
  module Tracing
    module Contrib
      module Kafka
        module Events
          module ConsumerGroup
            # Defines instrumentation for join_group.consumer.kafka event
            module JoinGroup
              include Kafka::Event
              extend Kafka::ConsumerEvent
              extend Kafka::ConsumerGroupEvent

              EVENT_NAME = 'join_group.consumer.kafka'

              module_function

              def span_name
                Ext::SPAN_CONSUMER_JOIN_GROUP
              end

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

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
datadog-2.9.0 lib/datadog/tracing/contrib/kafka/events/consumer_group/join_group.rb
datadog-2.8.0 lib/datadog/tracing/contrib/kafka/events/consumer_group/join_group.rb
datadog-2.7.1 lib/datadog/tracing/contrib/kafka/events/consumer_group/join_group.rb
datadog-2.7.0 lib/datadog/tracing/contrib/kafka/events/consumer_group/join_group.rb
datadog-2.6.0 lib/datadog/tracing/contrib/kafka/events/consumer_group/join_group.rb
datadog-2.5.0 lib/datadog/tracing/contrib/kafka/events/consumer_group/join_group.rb
datadog-2.4.0 lib/datadog/tracing/contrib/kafka/events/consumer_group/join_group.rb
datadog-2.3.0 lib/datadog/tracing/contrib/kafka/events/consumer_group/join_group.rb
datadog-2.2.0 lib/datadog/tracing/contrib/kafka/events/consumer_group/join_group.rb
datadog-2.1.0 lib/datadog/tracing/contrib/kafka/events/consumer_group/join_group.rb
datadog-2.0.0 lib/datadog/tracing/contrib/kafka/events/consumer_group/join_group.rb
datadog-2.0.0.beta2 lib/datadog/tracing/contrib/kafka/events/consumer_group/join_group.rb
datadog-2.0.0.beta1 lib/datadog/tracing/contrib/kafka/events/consumer_group/join_group.rb