PropagatorInterface
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
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
at line 44
array
inject(SpanContext $context, mixed $container)
Inject the SpanContext back into the response
at line 51
FormatterInterface
formatter()
Fetch the formatter for propagating the SpanContext
at line 58
string
key()
Return the key used to propagate the SpanContext