OpenTelemetry PHP

CloudTracePropagator
in package
implements TextMapPropagatorInterface

FinalYes

CloudTracePropagator is a propagator that supports the specification for the X-Cloud-Trace-Context header used for trace context propagation across service boundaries.

(https://cloud.google.com/trace/docs/setup#force-trace)

Table of Contents

Interfaces

TextMapPropagatorInterface

Constants

FIELDS  = [self::XCLOUD]
XCLOUD  = 'x-cloud-trace-context'

Properties

$instance  : TextMapPropagatorInterface|null
$oneWay  : bool
$oneWayInstance  : TextMapPropagatorInterface|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()  : TextMapPropagatorInterface
getOneWayInstance()  : TextMapPropagatorInterface
inject()  : void
Injects specific values from the provided {@see ContextInterface} into the provided carrier via an {@see PropagationSetterInterface}.
__construct()  : mixed

Constants

Properties

Methods

fields()

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

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

        
On this page

Search results