Sha256: 21806827496b17045f028b7a6dac8260f7cbc0e4db1006f2d173ebcdbbd6cf6b

Contents?: true

Size: 767 Bytes

Versions: 3

Compression:

Stored size: 767 Bytes

Contents

# frozen_string_literal: true

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

module OpenTelemetry
  class Context
    module Propagation
      # A no-op extractor implementation
      class NoopExtractor
        # Extract a context from the given carrier
        #
        # @param [Object] carrier The carrier to extract the context from
        # @param [Context] context The context to be upated with the extracted
        #   context
        # @param [optional Callable] getter An optional callable that takes a carrier and a key and
        #   and returns the value associated with the key
        # @return [Context]
        def extract(carrier, context, getter = nil)
          context
        end
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
opentelemetry-api-0.16.0 lib/opentelemetry/context/propagation/noop_extractor.rb
opentelemetry-api-0.15.0 lib/opentelemetry/context/propagation/noop_extractor.rb
opentelemetry-api-0.14.0 lib/opentelemetry/context/propagation/noop_extractor.rb