Class: OpenTelemetry::Context::Propagation::NoopExtractor

Inherits:
Object
  • Object
show all
Defined in:
lib/opentelemetry/context/propagation/noop_extractor.rb

Overview

A no-op extractor implementation

Instance Method Summary collapse

Instance Method Details

#extract(carrier, context, getter = nil) ⇒ Context

Extract a context from the given carrier

Parameters:

  • carrier (Object)

    The carrier to extract the context from

  • context (Context)

    The context to be upated with the extracted context

  • getter (optional Callable) (defaults to: nil)

    An optional callable that takes a carrier and a key and and returns the value associated with the key

Returns:



20
21
22
# File 'lib/opentelemetry/context/propagation/noop_extractor.rb', line 20

def extract(carrier, context, getter = nil)
  context
end