Sha256: 84693c70b1c1e2c4c9b153de54ceba323364f835310176e7972b21dd9512d977

Contents?: true

Size: 484 Bytes

Versions: 26

Compression:

Stored size: 484 Bytes

Contents

# frozen_string_literal: true

module Datadog
  module Tracing
    module Contrib
      module Kafka
        # Defines basic behaviors for an event for a consumer.
        module ConsumerEvent
          def process(span, _event, _id, payload)
            super

            span.set_tag(Ext::TAG_GROUP, payload[:group_id])
            span.set_tag(Tracing::Metadata::Ext::TAG_KIND, Tracing::Metadata::Ext::SpanKind::TAG_CONSUMER)
          end
        end
      end
    end
  end
end

Version data entries

26 entries across 26 versions & 2 rubygems

Version Path
ddtrace-1.23.3 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.23.2 lib/datadog/tracing/contrib/kafka/consumer_event.rb
datadog-2.1.0 lib/datadog/tracing/contrib/kafka/consumer_event.rb
datadog-2.0.0 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.23.1 lib/datadog/tracing/contrib/kafka/consumer_event.rb
datadog-2.0.0.beta2 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.22.0 lib/datadog/tracing/contrib/kafka/consumer_event.rb
datadog-2.0.0.beta1 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.21.1 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.21.0 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.20.0 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.19.0 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.18.0 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.17.0 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.16.2 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.16.1 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.16.0 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.15.0 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.14.0 lib/datadog/tracing/contrib/kafka/consumer_event.rb
ddtrace-1.13.1 lib/datadog/tracing/contrib/kafka/consumer_event.rb