/** * W3C `traceparent` encoding for span contexts that must survive a process. * * A span context lives only as long as the process holding it. Work that * suspends and resumes later -- a workflow parked on an approval -- has to * write its trace identity somewhere durable and read it back into a link. * That wire format is `traceparent`, and this module is the only place that * knows it. * * @module observability/tracing/traceparent */ import type { SpanContext } from "./api-shim.js"; /** * Encode a span context as a `traceparent` header value. * * Returns undefined for the placeholder context a no-op tracer hands back, so * callers never persist an identity that can never be linked to. */ export declare function formatTraceparent(spanContext: SpanContext | undefined): string | undefined; /** * Decode a `traceparent` header value into a span context. * * Version `ff` is forbidden by the spec, and a future version's extra fields * are ignored rather than rejected, so a record written by a newer writer * still links. */ export declare function parseTraceparent(traceparent: string | undefined): SpanContext | undefined; //# sourceMappingURL=traceparent.d.ts.map