JaegerPropagator
in package
implements
TextMapPropagatorInterface
JaegerPropagator is a propagator that supports the specification for the header "uber-trace-id" used for trace context propagation across service boundaries.
(https://www.jaegertracing.io/docs/1.52/client-libraries/#propagation-format)
Table of Contents
Interfaces
Constants
- DEFAULT_PARENT_SPAN_ID = 0
- FIELDS = [self::UBER_TRACE_ID_HEADER]
- IS_DEBUG = 2
- IS_NOT_SAMPLED = 0
- IS_SAMPLED = 1
- UBER_TRACE_ID_HEADER = 'uber-trace-id'
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.
- getInstance() : TextMapPropagatorInterface
- inject() : void
- Injects specific values from the provided {@see ContextInterface} into the provided carrier via an {@see PropagationSetterInterface}.
- extractImpl() : SpanContextInterface
- getFlag() : int
Constants
DEFAULT_PARENT_SPAN_ID
private
mixed
DEFAULT_PARENT_SPAN_ID
= 0
FIELDS
private
mixed
FIELDS
= [self::UBER_TRACE_ID_HEADER]
IS_DEBUG
private
mixed
IS_DEBUG
= 2
IS_NOT_SAMPLED
private
mixed
IS_NOT_SAMPLED
= 0
IS_SAMPLED
private
mixed
IS_SAMPLED
= 1
UBER_TRACE_ID_HEADER
private
mixed
UBER_TRACE_ID_HEADER
= 'uber-trace-id'
Properties
$instance
private
static TextMapPropagatorInterface|null
$instance
= null
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>getInstance()
public
static getInstance() : TextMapPropagatorInterface
Return values
TextMapPropagatorInterfaceinject()
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
extractImpl()
private
static extractImpl(mixed $carrier, PropagationGetterInterface $getter, ContextInterface &$context) : SpanContextInterface
Parameters
- $carrier : mixed
- $getter : PropagationGetterInterface
- $context : ContextInterface
Return values
SpanContextInterfacegetFlag()
private
getFlag(SpanContextInterface $spanContext, ContextInterface $context) : int
Parameters
- $spanContext : SpanContextInterface
- $context : ContextInterface