B3Propagator
in package
implements
TextMapPropagatorInterface
FinalYes
B3 is a propagator that supports the specification for the header "b3" used for trace context propagation across service boundaries.
(https://github.com/openzipkin/b3-propagation)
Table of Contents
Interfaces
Properties
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.
- getB3MultiHeaderInstance() : self
- getB3SingleHeaderInstance() : self
- inject() : void
- Injects specific values from the provided {@see ContextInterface} into the provided carrier via an {@see PropagationSetterInterface}.
- __construct() : mixed
Properties
$propagator read-only
private
TextMapPropagatorInterface
$propagator
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
Return values
ContextInterfacefields()
Returns list of fields that will be used by this propagator.
public
fields() : array<int, string>
Return values
array<int, string>getB3MultiHeaderInstance()
public
static getB3MultiHeaderInstance() : self
Return values
selfgetB3SingleHeaderInstance()
public
static getB3SingleHeaderInstance() : self
Return values
selfinject()
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
__construct()
private
__construct(TextMapPropagatorInterface $propagator) : mixed
Parameters
- $propagator : TextMapPropagatorInterface