Class: OpenTelemetry::Context::Propagation::Propagation
- Inherits:
-
Object
- Object
- OpenTelemetry::Context::Propagation::Propagation
- Defined in:
- lib/opentelemetry/context/propagation/propagation.rb
Overview
The Propagation class provides methods to inject and extract context to pass across process boundaries
Instance Attribute Summary collapse
-
#http ⇒ Object
Get or set the global http propagator.
-
#text ⇒ Object
Get or set the global text propagator.
Instance Method Summary collapse
-
#initialize ⇒ Propagation
constructor
A new instance of Propagation.
Constructor Details
#initialize ⇒ Propagation
Returns a new instance of Propagation.
21 22 23 |
# File 'lib/opentelemetry/context/propagation/propagation.rb', line 21 def initialize @http = @text = Propagator.new(NoopInjector.new, NoopExtractor.new) end |
Instance Attribute Details
#http ⇒ Object
Get or set the global http propagator. Use a CompositePropagator to propagate multiple formats.
15 16 17 |
# File 'lib/opentelemetry/context/propagation/propagation.rb', line 15 def http @http end |
#text ⇒ Object
Get or set the global text propagator. Use a CompositePropagator to propagate multiple formats.
19 20 21 |
# File 'lib/opentelemetry/context/propagation/propagation.rb', line 19 def text @text end |