Share via


ParentSpanRef interface

Reference to a parent span for explicit parent-child linking across async boundaries. Used when automatic context propagation fails (e.g., WebSocket callbacks, external event handlers).

Properties

isRemote

Whether the span originated from a remote service (default: true)

spanId

Span ID (16-character hex string)

traceFlags

Optional trace flags

traceId

Trace ID (32-character hex string)

traceState

Optional W3C trace state for vendor-specific trace context data

Property Details

isRemote

Whether the span originated from a remote service (default: true)

isRemote?: boolean

Property Value

boolean

spanId

Span ID (16-character hex string)

spanId: string

Property Value

string

traceFlags

Optional trace flags

traceFlags?: TraceFlags

Property Value

TraceFlags

traceId

Trace ID (32-character hex string)

traceId: string

Property Value

string

traceState

Optional W3C trace state for vendor-specific trace context data

traceState?: TraceState

Property Value

TraceState