Class: OpenTelemetry::Context::Propagation::NoopTextMapPropagator Private

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

This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.

Instance Method Summary collapse

Instance Method Details

#extract(carrier, context: Context.current, getter: Context::Propagation.text_map_getter) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



17
18
19
# File 'lib/opentelemetry/context/propagation/noop_text_map_propagator.rb', line 17

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

#fieldsObject

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



21
22
23
# File 'lib/opentelemetry/context/propagation/noop_text_map_propagator.rb', line 21

def fields
  EMPTY_LIST
end

#inject(carrier, context: Context.current, setter: Context::Propagation.text_map_setter) ⇒ Object

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.



15
# File 'lib/opentelemetry/context/propagation/noop_text_map_propagator.rb', line 15

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