MediaWiki master
|
A ContextPropagatorInterface
implementation that injects a fixed set of headers into outgoing requests.
More...
Inherits Wikimedia\Telemetry\ContextPropagatorInterface.
Public Member Functions | |
__construct (array $headers) | |
extract (array $carrier) | |
Attempt to extract a SpanContext from the given carrier. | |
inject (?SpanContext $spanContext, array $carrier) | |
Inject the given SpanContext into the given carrier.SpanContext may be null, in which case the propagator might still inject non-span-specific data.
| |
A ContextPropagatorInterface
implementation that injects a fixed set of headers into outgoing requests.
It does not perform extraction.
Definition at line 11 of file StaticInjectionPropagator.php.
Wikimedia\Telemetry\StaticInjectionPropagator::__construct | ( | array | $headers | ) |
Definition at line 14 of file StaticInjectionPropagator.php.
Wikimedia\Telemetry\StaticInjectionPropagator::extract | ( | array | $carrier | ) |
Attempt to extract a SpanContext from the given carrier.
Implements Wikimedia\Telemetry\ContextPropagatorInterface.
Definition at line 31 of file StaticInjectionPropagator.php.
Wikimedia\Telemetry\StaticInjectionPropagator::inject | ( | ?SpanContext | $spanContext, |
array | $carrier ) |
Inject the given SpanContext into the given carrier.SpanContext may be null, in which case the propagator might still inject non-span-specific data.
Implements Wikimedia\Telemetry\ContextPropagatorInterface.
Definition at line 21 of file StaticInjectionPropagator.php.