TraceReportContext
in package
implements
JsonSerializable
FinalYes
OpenTelemetry identifiers used to correlate a failure with an application-owned trace.
Table of Contents
Interfaces
- JsonSerializable
Properties
Methods
- __construct() : mixed
- jsonSerialize() : array{traceId: string, spanId: string}
Properties
$spanId read-only
OpenTelemetry span ID.
public
string
$spanId
$traceId read-only
OpenTelemetry trace ID.
public
string
$traceId
Methods
__construct()
public
__construct(string $traceId, string $spanId) : mixed
Parameters
- $traceId : string
-
OpenTelemetry trace ID. @param string $spanId OpenTelemetry span ID.
- $spanId : string
jsonSerialize()
public
jsonSerialize() : array{traceId: string, spanId: string}
Return values
array{traceId: string, spanId: string} —JSON-safe trace correlation fields.