Inttegro PHP SDK

TraceReportContext
in package
implements JsonSerializable

FinalYes

OpenTelemetry identifiers used to correlate a failure with an application-owned trace.

Table of Contents

Interfaces

JsonSerializable

Properties

$spanId  : string
OpenTelemetry span ID.
$traceId  : string
OpenTelemetry trace ID.

Methods

__construct()  : mixed
jsonSerialize()  : array{traceId: string, spanId: string}

Properties

$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.

On this page

Search results