MediaWiki master
|
Data transfer object holding data associated with a given span. More...
Inherits JsonSerializable.
Public Member Functions | |
__construct (string $traceId, string $spanId, ?string $parentSpanId, string $name, bool $sampled) | |
equals (?SpanContext $other) | |
Check whether the given SpanContext belongs to the same span. | |
getParentSpanId () | |
getSpanId () | |
getTraceId () | |
isSampled () | |
jsonSerialize () | |
setAttributes (array $attributes) | |
setEndEpochNanos (int $endEpochNanos) | |
setSpanKind (int $spanKind) | |
setSpanStatus (int $status) | |
setStartEpochNanos (int $startEpochNanos) | |
wasEnded () | |
wasStarted () | |
Data transfer object holding data associated with a given span.
Definition at line 11 of file SpanContext.php.
Wikimedia\Telemetry\SpanContext::__construct | ( | string | $traceId, |
string | $spanId, | ||
?string | $parentSpanId, | ||
string | $name, | ||
bool | $sampled ) |
Definition at line 79 of file SpanContext.php.
Wikimedia\Telemetry\SpanContext::equals | ( | ?SpanContext | $other | ) |
Check whether the given SpanContext belongs to the same span.
SpanContext | null | $other |
Definition at line 165 of file SpanContext.php.
Wikimedia\Telemetry\SpanContext::getParentSpanId | ( | ) |
Definition at line 125 of file SpanContext.php.
Wikimedia\Telemetry\SpanContext::getSpanId | ( | ) |
Definition at line 117 of file SpanContext.php.
Wikimedia\Telemetry\SpanContext::getTraceId | ( | ) |
Definition at line 121 of file SpanContext.php.
Wikimedia\Telemetry\SpanContext::isSampled | ( | ) |
Definition at line 113 of file SpanContext.php.
Referenced by Wikimedia\Telemetry\ProbabilisticSampler\shouldSample().
Wikimedia\Telemetry\SpanContext::jsonSerialize | ( | ) |
Definition at line 137 of file SpanContext.php.
Wikimedia\Telemetry\SpanContext::setAttributes | ( | array | $attributes | ) |
Definition at line 109 of file SpanContext.php.
Wikimedia\Telemetry\SpanContext::setEndEpochNanos | ( | int | $endEpochNanos | ) |
Definition at line 93 of file SpanContext.php.
Wikimedia\Telemetry\SpanContext::setSpanKind | ( | int | $spanKind | ) |
Definition at line 101 of file SpanContext.php.
Wikimedia\Telemetry\SpanContext::setSpanStatus | ( | int | $status | ) |
Definition at line 105 of file SpanContext.php.
Wikimedia\Telemetry\SpanContext::setStartEpochNanos | ( | int | $startEpochNanos | ) |
Definition at line 97 of file SpanContext.php.
Wikimedia\Telemetry\SpanContext::wasEnded | ( | ) |
Definition at line 133 of file SpanContext.php.
Wikimedia\Telemetry\SpanContext::wasStarted | ( | ) |
Definition at line 129 of file SpanContext.php.