Interface TraceContext

Context for propagating trace information.

interface TraceContext {
    traceId: string;
    spanId: string;
    parentSpanId?: string;
    traceFlags: number;
    baggage?: Record<string, string>;
}

Properties

traceId: string

Unique trace ID

spanId: string

Current span ID

parentSpanId?: string

Parent span ID if exists

traceFlags: number

Trace flags (e.g., sampling)

baggage?: Record<string, string>

Baggage items