interface SpanContextInterface implements ExecutionSegmentContextInterface (View source)

Methods

void
setLabel(string $key, string|bool|int|float|null $value)

No description

db()

Returns an object containing contextual data for database spans

http()

Returns an object containing contextual data of the related http request

destination()

Returns an object containing contextual data about the destination for spans

Details

void setLabel(string $key, string|bool|int|float|null $value)

No description

Parameters

string $key
string|bool|int|float|null $value

Labels is a flat mapping of user-defined labels with string keys and null, string, boolean or number values.

The length of a key and a string value is limited to 1024.

Return Value

void

SpanContextDbInterface db()

Returns an object containing contextual data for database spans

Return Value

SpanContextDbInterface

SpanContextHttpInterface http()

Returns an object containing contextual data of the related http request

SpanContextDestinationInterface destination()

Returns an object containing contextual data about the destination for spans