class SpanLink implements JsonSerializable (View source)

Properties

string $traceId
string $spanId
string $traceState
string[] $attributes
int $droppedAttributesCount

Methods

mixed
jsonSerialize()

No description

static SpanLink
fromHeaders(array|callable $headersOrCallback)

Consumes distributed tracing headers, from which a span link will be constructed.

Details

mixed jsonSerialize()

No description

Return Value

mixed

data which can be serialized by json_encode, which is a value of any type other than a resource.

static SpanLink fromHeaders(array|callable $headersOrCallback)

Consumes distributed tracing headers, from which a span link will be constructed.

Parameters

array|callable $headersOrCallback

Either an array with a lowercase header to value mapping, or a callback, which given a header name for distributed tracing, returns the value it should be updated to.

Return Value

SpanLink