/** * W3C Trace Context utilities for distributed tracing. * Implements the W3C Trace Context specification: * https://www.w3.org/TR/trace-context/ * * traceparent format: version-traceId-spanId-flags * Example: 00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01 */ export type TraceparentData = { traceId: string; spanId: string; sampled: boolean; }; /** * Generate a random 32-character hex trace ID (16 bytes). */ export declare function generateTraceId(): string; /** * Generate a random 16-character hex span ID (8 bytes). */ export declare function generateSpanId(): string; /** * Parse a W3C traceparent header into its components. * Returns null if the header is invalid. */ export declare function parseTraceparent(header: string): TraceparentData | null; /** * Create a W3C traceparent header value. */ export declare function createTraceparent(traceId: string, spanId: string, sampled: boolean): string; //# sourceMappingURL=trace-context.d.ts.map