Sha256: d58f67a4619ff4dd25d5233b7cf30df3beae83a092dabae861eb56c4d49aa164

Contents?: true

Size: 1.76 KB

Versions: 7

Compression:

Stored size: 1.76 KB

Contents

# frozen_string_literal: true

module Datadog
  module Tracing
    module Contrib
      module Sidekiq
        # Sidekiq integration constants
        # @public_api Changing resource names, tag names, or environment variables creates breaking changes.
        module Ext
          CLIENT_SERVICE_NAME = 'sidekiq-client'
          ENV_ENABLED = 'DD_TRACE_SIDEKIQ_ENABLED'
          # @!visibility private
          ENV_ANALYTICS_ENABLED = 'DD_TRACE_SIDEKIQ_ANALYTICS_ENABLED'
          ENV_ANALYTICS_SAMPLE_RATE = 'DD_TRACE_SIDEKIQ_ANALYTICS_SAMPLE_RATE'
          ENV_TAG_JOB_ARGS = 'DD_SIDEKIQ_TAG_JOB_ARGS'
          SERVICE_NAME = 'sidekiq'
          SPAN_PUSH = 'sidekiq.push'
          SPAN_JOB = 'sidekiq.job'
          SPAN_JOB_FETCH = 'sidekiq.job_fetch'
          SPAN_REDIS_INFO = 'sidekiq.redis_info'
          SPAN_HEARTBEAT = 'sidekiq.heartbeat'
          SPAN_SCHEDULED_PUSH = 'sidekiq.scheduled_push'
          SPAN_SCHEDULED_WAIT = 'sidekiq.scheduled_poller_wait'
          SPAN_STOP = 'sidekiq.stop'
          TAG_JOB_DELAY = 'sidekiq.job.delay'
          TAG_JOB_ID = 'sidekiq.job.id'
          TAG_JOB_QUEUE = 'sidekiq.job.queue'
          TAG_JOB_RETRY = 'sidekiq.job.retry'
          TAG_JOB_RETRY_COUNT = 'sidekiq.job.retry_count'
          TAG_JOB_WRAPPER = 'sidekiq.job.wrapper'
          TAG_JOB_ARGS = 'sidekiq.job.args'
          TAG_COMPONENT = 'sidekiq'
          TAG_OPERATION_PUSH = 'push'
          TAG_OPERATION_JOB = 'job'
          TAG_OPERATION_JOB_FETCH = 'job_fetch'
          TAG_OPERATION_REDIS_INFO = 'redis_info'
          TAG_OPERATION_HEARTBEAT = 'heartbeat'
          TAG_OPERATION_SCHEDULED_PUSH = 'scheduled_push'
          TAG_OPERATION_SCHEDULED_WAIT = 'scheduled_poller_wait'
          TAG_OPERATION_STOP = 'stop'
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
ddtrace-1.23.3 lib/datadog/tracing/contrib/sidekiq/ext.rb
ddtrace-1.23.2 lib/datadog/tracing/contrib/sidekiq/ext.rb
ddtrace-1.23.1 lib/datadog/tracing/contrib/sidekiq/ext.rb
ddtrace-1.22.0 lib/datadog/tracing/contrib/sidekiq/ext.rb
ddtrace-1.21.1 lib/datadog/tracing/contrib/sidekiq/ext.rb
ddtrace-1.21.0 lib/datadog/tracing/contrib/sidekiq/ext.rb
ddtrace-1.20.0 lib/datadog/tracing/contrib/sidekiq/ext.rb