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
| is |
Whether the span originated from a remote service (default: true) |
| span |
Span ID (16-character hex string) |
| trace |
Optional trace flags |
| trace |
Trace ID (32-character hex string) |
| trace |
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