Sha256: 47fae3b7cd4bb01163bacc8917dbe73a5e97d2d3c0d41a20d772ddb0cb823da1

Contents?: true

Size: 1.32 KB

Versions: 3

Compression:

Stored size: 1.32 KB

Contents

# frozen_string_literal: true
# typed: true

module Datadog
  module Tracing
    module Distributed
      module Headers
        # DEV-2.0: This module only exists for backwards compatibility with the public API. It should be removed.
        # @deprecated use [Datadog::Tracing::Distributed::Ext]
        # @public_api
        module Ext
          HTTP_HEADER_TRACE_ID = 'x-datadog-trace-id'
          HTTP_HEADER_PARENT_ID = 'x-datadog-parent-id'
          HTTP_HEADER_SAMPLING_PRIORITY = 'x-datadog-sampling-priority'
          HTTP_HEADER_ORIGIN = 'x-datadog-origin'
          # Distributed trace-level tags
          HTTP_HEADER_TAGS = 'x-datadog-tags'

          # B3 keys used for distributed tracing.
          # @see https://github.com/openzipkin/b3-propagation
          B3_HEADER_TRACE_ID = 'x-b3-traceid'
          B3_HEADER_SPAN_ID = 'x-b3-spanid'
          B3_HEADER_SAMPLED = 'x-b3-sampled'
          B3_HEADER_SINGLE = 'b3'

          # gRPC metadata keys for distributed tracing. https://github.com/grpc/grpc-go/blob/v1.10.x/Documentation/grpc-metadata.md
          GRPC_METADATA_TRACE_ID = 'x-datadog-trace-id'
          GRPC_METADATA_PARENT_ID = 'x-datadog-parent-id'
          GRPC_METADATA_SAMPLING_PRIORITY = 'x-datadog-sampling-priority'
          GRPC_METADATA_ORIGIN = 'x-datadog-origin'
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
ddtrace-1.9.0 lib/datadog/tracing/distributed/headers/ext.rb
ddtrace-1.8.0 lib/datadog/tracing/distributed/headers/ext.rb
ddtrace-1.7.0 lib/datadog/tracing/distributed/headers/ext.rb