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

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initializePropagation

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

#httpObject

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

#textObject

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