NoopSpan
in package
implements
RequestSpan
Interfaces, Classes, Traits and Enums
- RequestSpan
- Represents a span of time an event occurs over.
Table of Contents
- $instance : NoopSpan|null
- addTag() : void
- Adds a tag to this span.
- end() : void
- Ends this span.
- getInstance() : NoopSpan
- setStatus() : void
- Sets the status for this span.
Properties
$instance
private
static NoopSpan|null
$instance
= null
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 —getInstance()
public
static getInstance() : NoopSpan
Return values
NoopSpan —setStatus()
Sets the status for this span.
public
setStatus(StatusCode $statusCode) : void
Parameters
- $statusCode : StatusCode
-
The status to set.