RequestSpan
in
Represents a span of time an event occurs over.
Table of Contents
- addTag() : void
- Adds a tag to this span.
- end() : void
- Ends this span.
- setStatus() : void
- Sets the status for this span.
Methods
addTag()
Adds a tag to this span.
public
addTag(string $key, int|string $value) : void
Parameters
- $key : string
-
The key of the tag to add.
- $value : int|string
-
The value to assign to the tag.
Return values
void —end()
Ends this span.
public
end([int|null $endTimestampNanoseconds = null ]) : void
Parameters
- $endTimestampNanoseconds : int|null = null
Return values
void —setStatus()
Sets the status for this span.
public
setStatus(StatusCode $statusCode) : void
Parameters
- $statusCode : StatusCode
-
The status to set.