W3CTraceContext implements Propagator
Read onlyYes
FinalYes
Tags
Interfaces
Constants
- HEADER_TRACEPARENT : string = 'traceparent'
- HEADER_TRACESTATE : string = 'tracestate'
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.
Constants
HEADER_TRACEPARENT
public
string
HEADER_TRACEPARENT
= 'traceparent'
HEADER_TRACESTATE
public
string
HEADER_TRACESTATE
= 'tracestate'
Methods
extract()
Extract context from a carrier.
public
extract(Carrier<string|int, mixed> $carrier) : PropagationContext
Parameters
- $carrier : Carrier<string|int, mixed>
Return values
PropagationContext —The extracted context
fields()
Get the list of header/field names this propagator uses.
public
fields() : array<string|int, string>
Return values
array<string|int, string>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>