Class: OpenTelemetry::Context::Propagation::NoopInjector

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

Overview

A no-op injector implementation

Instance Method Summary collapse

Instance Method Details

#inject(carrier, context, &setter) ⇒ Object

Inject the given context into the specified carrier

Parameters:

  • carrier (Object)

    The carrier to inject the provided context into

  • context (Context)

    The context to be injected

  • setter (optional Callable)

    An optional callable that takes a carrier and a key and a value and assigns the key-value pair in the carrier

Returns:

  • (Object)

    carrier



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

def inject(carrier, context, &setter)
  carrier
end