Sha256: 252b563b02d08b165a2b1a494a673d820f72eb37ebb5872b50da7cba880773c2

Contents?: true

Size: 1.75 KB

Versions: 7

Compression:

Stored size: 1.75 KB

Contents

# frozen_string_literal: true

require_relative '../configuration/ext'
module Datadog
  module Core
    module Transport
      # @public_api
      module Ext
        module HTTP
          HEADER_CONTAINER_ID = 'Datadog-Container-ID'
          HEADER_DD_API_KEY = 'DD-API-KEY'
          # Tells agent that `_dd.top_level` metrics have been set by the tracer.
          # The agent will not calculate top-level spans but instead trust the tracer tagging.
          #
          # This prevents partially flushed traces being mistakenly marked as top-level.
          #
          # Setting this header to any non-empty value enables this feature.
          HEADER_CLIENT_COMPUTED_TOP_LEVEL = 'Datadog-Client-Computed-Top-Level'
          HEADER_META_LANG = 'Datadog-Meta-Lang'
          HEADER_META_LANG_VERSION = 'Datadog-Meta-Lang-Version'
          HEADER_META_LANG_INTERPRETER = 'Datadog-Meta-Lang-Interpreter'
          # Use for distinguishing between CRuby, JRuby, and TruffleRuby.
          HEADER_META_LANG_INTERPRETER_VENDOR = 'Datadog-Meta-Lang-Interpreter-Vendor'
          HEADER_META_TRACER_VERSION = 'Datadog-Meta-Tracer-Version'

          # Header that prevents the Net::HTTP integration from tracing internal trace requests.
          # Set it to any value to skip tracing.
          HEADER_DD_INTERNAL_UNTRACED_REQUEST = 'DD-Internal-Untraced-Request'
        end

        module Test
          ADAPTER = :test
        end

        module UnixSocket
          ADAPTER = Datadog::Core::Configuration::Ext::Agent::UnixSocket::ADAPTER
          DEFAULT_PATH = Datadog::Core::Configuration::Ext::Agent::UnixSocket::DEFAULT_PATH
          DEFAULT_TIMEOUT_SECONDS = Datadog::Core::Configuration::Ext::Agent::UnixSocket::DEFAULT_TIMEOUT_SECONDS
        end
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
datadog-2.4.0 lib/datadog/core/transport/ext.rb
datadog-2.3.0 lib/datadog/core/transport/ext.rb
datadog-2.2.0 lib/datadog/core/transport/ext.rb
datadog-2.1.0 lib/datadog/core/transport/ext.rb
datadog-2.0.0 lib/datadog/core/transport/ext.rb
datadog-2.0.0.beta2 lib/datadog/core/transport/ext.rb
datadog-2.0.0.beta1 lib/datadog/core/transport/ext.rb