|
MediaWiki master
|
A ContextPropagatorInterface implementation that injects headers from MediaWiki's request context, and does not extract any context.
More...
Inherits Wikimedia\Telemetry\ContextPropagatorInterface.

Public Member Functions | |
| __construct (TelemetryHeadersInterface $mwTelemetry) | |
| 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 headers from MediaWiki's request context, and does not extract any context.
Definition at line 14 of file MediaWikiPropagator.php.
| MediaWiki\Telemetry\MediaWikiPropagator::__construct | ( | TelemetryHeadersInterface | $mwTelemetry | ) |
Definition at line 18 of file MediaWikiPropagator.php.
| MediaWiki\Telemetry\MediaWikiPropagator::extract | ( | array | $carrier | ) |
Attempt to extract a SpanContext from the given carrier.
Implements Wikimedia\Telemetry\ContextPropagatorInterface.
Definition at line 35 of file MediaWikiPropagator.php.
| MediaWiki\Telemetry\MediaWikiPropagator::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 25 of file MediaWikiPropagator.php.