interface PropagatorInterface

This interface lets us define separate SpanContext Propagator formats. This interface is responsible for parsing and propagating the SpanContext to upstream and downstream requests.

Methods

extract(mixed $container)

Extract the SpanContext from some container

array
inject(SpanContext $context, mixed $container)

Inject the SpanContext back into the response

formatter()

Fetch the formatter for propagating the SpanContext

string
key()

Return the key used to propagate the SpanContext

Details

at line 35
SpanContext extract(mixed $container)

Extract the SpanContext from some container

Parameters

mixed $container

Return Value

SpanContext

at line 44
array inject(SpanContext $context, mixed $container)

Inject the SpanContext back into the response

Parameters

SpanContext $context
mixed $container

Return Value

array

at line 51
FormatterInterface formatter()

Fetch the formatter for propagating the SpanContext

Return Value

FormatterInterface

at line 58
string key()

Return the key used to propagate the SpanContext

Return Value

string