final class DistributedTracingData (View source)

Properties

string $traceId
string $parentId
bool $isSampled

Methods

string
serializeToString() deprecated

No description

void
injectHeaders(Closure $headerInjector)

Gets distributed tracing data for the current span/transaction

Details

string serializeToString() deprecated

deprecated Deprecated since version 1.3 - use injectHeaders() instead

No description

Return Value

string

See also

injectHeaders() Use it instead of this method Returns distributed tracing data for the current span/transaction

void injectHeaders(Closure $headerInjector)

Gets distributed tracing data for the current span/transaction

$headerInjector is callback to inject headers with signature

(string $headerName, string $headerValue): void

Parameters

Closure $headerInjector

Callback that actually injects header(s) for the underlying transport

Return Value

void