OpenTelemetry PHP

B3SinglePropagator
in package
implements TextMapPropagatorInterface

FinalYes

B3 is a propagator that supports the specification for the B3 single header "b3" used for trace context propagation across service boundaries.

(https://github.com/openzipkin/b3-propagation#single-header)

Table of Contents

Interfaces

TextMapPropagatorInterface

Constants

B3  = 'b3'
FIELDS  = [self::B3]
IS_DEBUG  = 'd'
IS_NOT_SAMPLED  = '0'
IS_SAMPLED  = '1'
VALID_NON_SAMPLED  = [self::IS_NOT_SAMPLED, 'false']
VALID_SAMPLED  = [self::IS_SAMPLED, 'true']

Properties

$instance  : self|null

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()  : self
inject()  : void
Injects specific values from the provided {@see ContextInterface} into the provided carrier via an {@see PropagationSetterInterface}.
extractImpl()  : SpanContextInterface
processSampledValue()  : int|null

Constants

VALID_NON_SAMPLED

private mixed VALID_NON_SAMPLED = [self::IS_NOT_SAMPLED, 'false']

Properties

Methods

fields()

Returns list of fields that will be used by this propagator.

public fields() : array<int, string>
Return values
array<int, string>

processSampledValue()

private static processSampledValue(mixed $value) : int|null
Parameters
$value : mixed
Return values
int|null

        
On this page

Search results