Sha256: 911277ad27a036012de7b1bbf05d8eb4d2ee8942fa3034c485907d88350c46f0

Contents?: true

Size: 1.13 KB

Versions: 10

Compression:

Stored size: 1.13 KB

Contents

# frozen_string_literal: true

module Datadog
  module Tracing
    module Contrib
      module Ethon
        # Ethon integration constants
        # @public_api Changing resource names, tag names, or environment variables creates breaking changes.
        module Ext
          ENV_ENABLED = 'DD_TRACE_ETHON_ENABLED'
          ENV_SERVICE_NAME = 'DD_TRACE_ETHON_SERVICE_NAME'
          ENV_PEER_SERVICE = 'DD_TRACE_ETHON_PEER_SERVICE'

          ENV_ANALYTICS_ENABLED = 'DD_TRACE_ETHON_ANALYTICS_ENABLED'
          ENV_ANALYTICS_SAMPLE_RATE = 'DD_TRACE_ETHON_ANALYTICS_SAMPLE_RATE'
          DEFAULT_PEER_SERVICE_NAME = 'ethon'
          SPAN_REQUEST = 'ethon.request'
          SPAN_MULTI_REQUEST = 'ethon.multi.request'
          NOT_APPLICABLE_METHOD = 'N/A'
          TAG_COMPONENT = 'ethon'
          TAG_OPERATION_REQUEST = 'request'
          TAG_OPERATION_MULTI_REQUEST = 'multi.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

10 entries across 10 versions & 1 rubygems

Version Path
ddtrace-1.19.0 lib/datadog/tracing/contrib/ethon/ext.rb
ddtrace-1.18.0 lib/datadog/tracing/contrib/ethon/ext.rb
ddtrace-1.17.0 lib/datadog/tracing/contrib/ethon/ext.rb
ddtrace-1.16.2 lib/datadog/tracing/contrib/ethon/ext.rb
ddtrace-1.16.1 lib/datadog/tracing/contrib/ethon/ext.rb
ddtrace-1.16.0 lib/datadog/tracing/contrib/ethon/ext.rb
ddtrace-1.15.0 lib/datadog/tracing/contrib/ethon/ext.rb
ddtrace-1.14.0 lib/datadog/tracing/contrib/ethon/ext.rb
ddtrace-1.13.1 lib/datadog/tracing/contrib/ethon/ext.rb
ddtrace-1.13.0 lib/datadog/tracing/contrib/ethon/ext.rb