Sha256: ca6710bcba2577b892d81bf3c40931f79535f5c72a0097833ee688272de9ac7e

Contents?: true

Size: 613 Bytes

Versions: 13

Compression:

Stored size: 613 Bytes

Contents

# frozen_string_literal: true

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

module OpenTelemetry
  class Context
    module Propagation
      # @api private
      class NoopTextMapPropagator
        EMPTY_LIST = [].freeze
        private_constant(:EMPTY_LIST)

        def inject(carrier, context: Context.current, setter: Context::Propagation.text_map_setter); end

        def extract(carrier, context: Context.current, getter: Context::Propagation.text_map_getter)
          context
        end

        def fields
          EMPTY_LIST
        end
      end
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
opentelemetry-api-1.4.0 lib/opentelemetry/context/propagation/noop_text_map_propagator.rb
opentelemetry-api-1.3.0 lib/opentelemetry/context/propagation/noop_text_map_propagator.rb
opentelemetry-api-1.2.5 lib/opentelemetry/context/propagation/noop_text_map_propagator.rb
opentelemetry-api-1.2.4 lib/opentelemetry/context/propagation/noop_text_map_propagator.rb
opentelemetry-api-1.2.3 lib/opentelemetry/context/propagation/noop_text_map_propagator.rb
opentelemetry-api-1.2.2 lib/opentelemetry/context/propagation/noop_text_map_propagator.rb
opentelemetry-api-1.2.1 lib/opentelemetry/context/propagation/noop_text_map_propagator.rb
opentelemetry-api-1.2.0 lib/opentelemetry/context/propagation/noop_text_map_propagator.rb
opentelemetry-api-1.1.0 lib/opentelemetry/context/propagation/noop_text_map_propagator.rb
opentelemetry-api-1.0.2 lib/opentelemetry/context/propagation/noop_text_map_propagator.rb
opentelemetry-api-1.0.1 lib/opentelemetry/context/propagation/noop_text_map_propagator.rb
opentelemetry-api-1.0.0 lib/opentelemetry/context/propagation/noop_text_map_propagator.rb
opentelemetry-api-1.0.0.rc3 lib/opentelemetry/context/propagation/noop_text_map_propagator.rb