OpenTelemetry PHP

TextMapPropagatorInterface

Tags
see
https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/context/api-propagators.md#textmap-propagator

Table of Contents

Methods

extract()  : ContextInterface
Extracts specific values from the provided carrier into the provided {@see ContextInterface} via an {@see PropagationGetterInterface}.
fields()  : array<int, string>
Returns list of fields that will be used by this propagator.
inject()  : void
Injects specific values from the provided {@see ContextInterface} into the provided carrier via an {@see PropagationSetterInterface}.

Methods

extract()

Extracts specific values from the provided carrier into the provided {@see ContextInterface} via an {@see PropagationGetterInterface}.

public extract(mixed $carrier[, PropagationGetterInterface|null $getter = null ][, ContextInterface|null $context = null ]) : ContextInterface
Parameters
$carrier : mixed
$getter : PropagationGetterInterface|null = null
$context : ContextInterface|null = null
Tags
see
https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/context/api-propagators.md#textmap-extract
Return values
ContextInterface

inject()

Injects specific values from the provided {@see ContextInterface} into the provided carrier via an {@see PropagationSetterInterface}.

public inject(mixed &$carrier[, PropagationSetterInterface|null $setter = null ][, ContextInterface|null $context = null ]) : void
Parameters
$carrier : mixed
$setter : PropagationSetterInterface|null = null
$context : ContextInterface|null = null
Tags
see
https://github.com/open-telemetry/opentelemetry-specification/blob/v1.6.1/specification/context/api-propagators.md#textmap-inject

        
On this page

Search results