Trace context for distributed tracing

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

Properties

traceId: string
spanId: string
parentSpanId?: string
traceState?: string
baggage?: Record<string, string>