MediaWiki master
|
CompositePropagator accepts an array of other propagators. More...
Inherits Wikimedia\Telemetry\ContextPropagatorInterface.
Public Member Functions | |
__construct (array $propagators) | |
extract (array $carrier) | |
Attempt to extract a SpanContext from the given carrier. | |
inject (?SpanContext $context, 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.
| |
CompositePropagator accepts an array of other propagators.
It delegates to each of them in order when extracting or injecting. When extracting, it returns the first non-null result.
Definition at line 12 of file CompositePropagator.php.
Wikimedia\Telemetry\CompositePropagator::__construct | ( | array | $propagators | ) |
ContextPropagatorInterface[] | $propagators |
ParameterAssertionException | if $propagators is empty |
Definition at line 20 of file CompositePropagator.php.
Wikimedia\Telemetry\CompositePropagator::extract | ( | array | $carrier | ) |
Attempt to extract a SpanContext from the given carrier.
Implements Wikimedia\Telemetry\ContextPropagatorInterface.
Definition at line 32 of file CompositePropagator.php.
Wikimedia\Telemetry\CompositePropagator::inject | ( | ?SpanContext | $context, |
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 45 of file CompositePropagator.php.