Sha256: 3d0dc911a56531e79aa301b592795317414906baeef4dc8f842e1d7b6babcde1

Contents?: true

Size: 1.29 KB

Versions: 4

Compression:

Stored size: 1.29 KB

Contents

# typed: true
module Datadog
  module Contrib
    module ActiveJob
      module Ext
        APP = 'active_job'.freeze
        SERVICE_NAME = 'active_job'.freeze

        ENV_ENABLED = 'DD_TRACE_ACTIVE_JOB_ENABLED'.freeze
        ENV_ANALYTICS_ENABLED = 'DD_TRACE_ACTIVE_JOB_ANALYTICS_ENABLED'.freeze
        ENV_ANALYTICS_ENABLED_OLD = 'DD_ACTIVE_JOB_ANALYTICS_ENABLED'.freeze
        ENV_ANALYTICS_SAMPLE_RATE = 'DD_TRACE_ACTIVE_JOB_ANALYTICS_SAMPLE_RATE'.freeze
        ENV_ANALYTICS_SAMPLE_RATE_OLD = 'DD_ACTIVE_JOB_ANALYTICS_SAMPLE_RATE'.freeze

        SPAN_DISCARD = 'active_job.discard'.freeze
        SPAN_ENQUEUE = 'active_job.enqueue'.freeze
        SPAN_ENQUEUE_RETRY = 'active_job.enqueue_retry'.freeze
        SPAN_PERFORM = 'active_job.perform'.freeze
        SPAN_RETRY_STOPPED = 'active_job.retry_stopped'.freeze

        TAG_ADAPTER = 'active_job.adapter'.freeze
        TAG_JOB_ERROR = 'active_job.job.error'.freeze
        TAG_JOB_EXECUTIONS = 'active_job.job.executions'.freeze
        TAG_JOB_ID = 'active_job.job.id'.freeze
        TAG_JOB_PRIORITY = 'active_job.job.priority'.freeze
        TAG_JOB_QUEUE = 'active_job.job.queue'.freeze
        TAG_JOB_RETRY_WAIT = 'active_job.job.retry_wait'.freeze
        TAG_JOB_SCHEDULED_AT = 'active_job.job.scheduled_at'.freeze
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ddtrace-0.54.2 lib/ddtrace/contrib/active_job/ext.rb
ddtrace-0.54.1 lib/ddtrace/contrib/active_job/ext.rb
ddtrace-0.54.0 lib/ddtrace/contrib/active_job/ext.rb
ddtrace-0.53.0 lib/ddtrace/contrib/active_job/ext.rb