Propagator
Methods
- extract() : PropagationContext
- Extract context from a carrier.
- fields() : array<string|int, string>
- Get the list of header/field names this propagator uses.
- inject() : void
- Inject context into a carrier.
Methods
extract()
Extract context from a carrier.
public
extract(Carrier<string|int, mixed> $carrier) : PropagationContext
Parameters
- $carrier : Carrier<string|int, mixed>
-
The carrier to extract from
Return values
PropagationContext —The extracted context
fields()
Get the list of header/field names this propagator uses.
public
fields() : array<string|int, string>
This is useful for CORS configuration and carrier filtering.
Return values
array<string|int, string> —List of field names
inject()
Inject context into a carrier.
public
inject(PropagationContext $context, Carrier<string|int, mixed> $carrier) : void
Parameters
- $context : PropagationContext
-
The context to inject
- $carrier : Carrier<string|int, mixed>
-
The carrier to inject into