Sha256: 8b95f7d04dbce8ae0c084feb179fcbe02c84ab8b578ed3f456651a0fdbf231e8

Contents?: true

Size: 1.38 KB

Versions: 14

Compression:

Stored size: 1.38 KB

Contents

# frozen_string_literal: true

module Datadog
  module Core
    module Configuration
      # Constants for configuration settings
      # e.g. Env vars, default values, enums, etc...
      module Ext
        # @public_api
        module Diagnostics
          ENV_DEBUG_ENABLED = 'DD_TRACE_DEBUG'
          ENV_HEALTH_METRICS_ENABLED = 'DD_HEALTH_METRICS_ENABLED'
          ENV_STARTUP_LOGS_ENABLED = 'DD_TRACE_STARTUP_LOGS'
        end

        module Metrics
          ENV_DEFAULT_PORT = 'DD_METRIC_AGENT_PORT'
        end

        # DEV-2.0: This module only exists for backwards compatibility with the public API.
        # It should be consolidated into the Agent module below.
        module Transport
          ENV_DEFAULT_HOST = 'DD_AGENT_HOST'
        end

        module Agent
          # env var has "trace" in it, but it really applies to all products
          ENV_DEFAULT_PORT = 'DD_TRACE_AGENT_PORT'
          ENV_DEFAULT_URL = 'DD_TRACE_AGENT_URL'

          module HTTP
            ADAPTER = :net_http # DEV: Rename to simply `:http`, as Net::HTTP is an implementation detail.
            DEFAULT_HOST = '127.0.0.1'
            DEFAULT_PORT = 8126
          end

          # @public_api
          module UnixSocket
            ADAPTER = :unix
            DEFAULT_PATH = '/var/run/datadog/apm.socket'
            DEFAULT_TIMEOUT_SECONDS = 1
          end
        end
      end
    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
ddtrace-1.23.3 lib/datadog/core/configuration/ext.rb
ddtrace-1.23.2 lib/datadog/core/configuration/ext.rb
ddtrace-1.23.1 lib/datadog/core/configuration/ext.rb
ddtrace-1.22.0 lib/datadog/core/configuration/ext.rb
ddtrace-1.21.1 lib/datadog/core/configuration/ext.rb
ddtrace-1.21.0 lib/datadog/core/configuration/ext.rb
ddtrace-1.20.0 lib/datadog/core/configuration/ext.rb
ddtrace-1.19.0 lib/datadog/core/configuration/ext.rb
ddtrace-1.18.0 lib/datadog/core/configuration/ext.rb
ddtrace-1.17.0 lib/datadog/core/configuration/ext.rb
ddtrace-1.16.2 lib/datadog/core/configuration/ext.rb
ddtrace-1.16.1 lib/datadog/core/configuration/ext.rb
ddtrace-1.16.0 lib/datadog/core/configuration/ext.rb
ddtrace-1.15.0 lib/datadog/core/configuration/ext.rb