Sha256: a80088132f723ed6833e20e166d70d34dbcdd320977db9505c47be153c762827

Contents?: true

Size: 745 Bytes

Versions: 9

Compression:

Stored size: 745 Bytes

Contents

# frozen_string_literal: true

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

module OpenTelemetry
  class Context
    module Propagation
      # The Propagation class provides methods to inject and extract context
      # to pass across process boundaries
      class Propagation
        # Get or set the global http propagator. Use a CompositePropagator
        # to propagate multiple formats.
        attr_accessor :http

        # Get or set the global text propagator. Use a CompositePropagator
        # to propagate multiple formats.
        attr_accessor :text

        def initialize
          @http = @text = Propagator.new(NoopInjector.new, NoopExtractor.new)
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
opentelemetry-api-0.10.0 lib/opentelemetry/context/propagation/propagation.rb
opentelemetry-api-0.9.0 lib/opentelemetry/context/propagation/propagation.rb
opentelemetry-api-0.8.0 lib/opentelemetry/context/propagation/propagation.rb
opentelemetry-api-0.7.0 lib/opentelemetry/context/propagation/propagation.rb
opentelemetry-api-0.6.0 lib/opentelemetry/context/propagation/propagation.rb
opentelemetry-api-0.5.1 lib/opentelemetry/context/propagation/propagation.rb
opentelemetry-api-0.5.0 lib/opentelemetry/context/propagation/propagation.rb
opentelemetry-api-0.4.0 lib/opentelemetry/context/propagation/propagation.rb
opentelemetry-api-0.3.0 lib/opentelemetry/context/propagation/propagation.rb