Sha256: aa34b1d3571ac0da22611669942c1efe1a06691bfa955cd0da9ab69146cdd03d

Contents?: true

Size: 815 Bytes

Versions: 15

Compression:

Stored size: 815 Bytes

Contents

# frozen_string_literal: true

# Copyright The OpenTelemetry Authors
#
# SPDX-License-Identifier: Apache-2.0

require 'opentelemetry/trace/propagation/trace_context/trace_parent'
require 'opentelemetry/trace/propagation/trace_context/text_map_propagator'

module OpenTelemetry
  module Trace
    module Propagation
      # The TraceContext module contains injectors, extractors, and utilties
      # for context propagation in the W3C Trace Context format.
      module TraceContext
        extend self
        TEXT_MAP_PROPAGATOR = TextMapPropagator.new

        private_constant :TEXT_MAP_PROPAGATOR

        # Returns a text map propagator that propagates context using the
        # W3C Trace Context format.
        def text_map_propagator
          TEXT_MAP_PROPAGATOR
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
opentelemetry-api-1.3.0 lib/opentelemetry/trace/propagation/trace_context.rb
opentelemetry-api-1.2.5 lib/opentelemetry/trace/propagation/trace_context.rb
opentelemetry-api-1.2.4 lib/opentelemetry/trace/propagation/trace_context.rb
opentelemetry-api-1.2.3 lib/opentelemetry/trace/propagation/trace_context.rb
opentelemetry-api-1.2.2 lib/opentelemetry/trace/propagation/trace_context.rb
opentelemetry-api-1.2.1 lib/opentelemetry/trace/propagation/trace_context.rb
opentelemetry-api-1.2.0 lib/opentelemetry/trace/propagation/trace_context.rb
opentelemetry-api-1.1.0 lib/opentelemetry/trace/propagation/trace_context.rb
opentelemetry-api-1.0.2 lib/opentelemetry/trace/propagation/trace_context.rb
opentelemetry-api-1.0.1 lib/opentelemetry/trace/propagation/trace_context.rb
opentelemetry-api-1.0.0 lib/opentelemetry/trace/propagation/trace_context.rb
opentelemetry-api-1.0.0.rc3 lib/opentelemetry/trace/propagation/trace_context.rb
opentelemetry-api-1.0.0.rc2 lib/opentelemetry/trace/propagation/trace_context.rb
opentelemetry-api-1.0.0.rc1 lib/opentelemetry/trace/propagation/trace_context.rb
opentelemetry-api-0.17.0 lib/opentelemetry/trace/propagation/trace_context.rb