Sha256: 494ca053b75c52d1fb8a8f2d4aeb8d067e02e3b14cfaafd258a9112f4be42cb7

Contents?: true

Size: 1.09 KB

Versions: 13

Compression:

Stored size: 1.09 KB

Contents

# frozen_string_literal: true

module Datadog
  module Tracing
    module Contrib
      module Excon
        # Excon integration constants
        # @public_api Changing resource names, tag names, or environment variables creates breaking changes.
        module Ext
          ENV_ENABLED = 'DD_TRACE_EXCON_ENABLED'
          ENV_SERVICE_NAME = 'DD_TRACE_EXCON_SERVICE_NAME'
          ENV_PEER_SERVICE = 'DD_TRACE_EXCON_PEER_SERVICE'

          # @!visibility private
          ENV_ANALYTICS_ENABLED = 'DD_TRACE_EXCON_ANALYTICS_ENABLED'
          ENV_ANALYTICS_SAMPLE_RATE = 'DD_TRACE_EXCON_ANALYTICS_SAMPLE_RATE'
          ENV_ERROR_STATUS_CODES = 'DD_TRACE_EXCON_ERROR_STATUS_CODES'
          DEFAULT_PEER_SERVICE_NAME = 'excon'
          SPAN_REQUEST = 'excon.request'
          TAG_COMPONENT = 'excon'
          TAG_OPERATION_REQUEST = 'request'
          PEER_SERVICE_SOURCES = Array[
            Tracing::Metadata::Ext::TAG_PEER_HOSTNAME,
            Tracing::Metadata::Ext::NET::TAG_DESTINATION_NAME,
            Tracing::Metadata::Ext::NET::TAG_TARGET_HOST,].freeze
        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/excon/ext.rb
datadog-2.8.0 lib/datadog/tracing/contrib/excon/ext.rb
datadog-2.7.1 lib/datadog/tracing/contrib/excon/ext.rb
datadog-2.7.0 lib/datadog/tracing/contrib/excon/ext.rb
datadog-2.6.0 lib/datadog/tracing/contrib/excon/ext.rb
datadog-2.5.0 lib/datadog/tracing/contrib/excon/ext.rb
datadog-2.4.0 lib/datadog/tracing/contrib/excon/ext.rb
datadog-2.3.0 lib/datadog/tracing/contrib/excon/ext.rb
datadog-2.2.0 lib/datadog/tracing/contrib/excon/ext.rb
datadog-2.1.0 lib/datadog/tracing/contrib/excon/ext.rb
datadog-2.0.0 lib/datadog/tracing/contrib/excon/ext.rb
datadog-2.0.0.beta2 lib/datadog/tracing/contrib/excon/ext.rb
datadog-2.0.0.beta1 lib/datadog/tracing/contrib/excon/ext.rb