import { Context, SpanContext, TextMapGetter, TextMapPropagator, TextMapSetter } from '@opentelemetry/api'; export declare const TRACE_PARENT_HEADER = "traceparent"; export declare const TRACE_STATE_HEADER = "tracestate"; /** * Parses information from the [traceparent] span tag and converts it into {@link SpanContext} * @param traceParent - A meta property that comes from server. * It should be dynamically generated server side to have the server's request trace Id, * a parent span Id that was set on the server's request span, * and the trace flags to indicate the server's sampling decision * (01 = sampled, 00 = not sampled). * for example: '{version}-{traceId}-{spanId}-{sampleDecision}' * For more information see {@link https://www.w3.org/TR/trace-context/} */ export declare function parseTraceParent(traceParent: string): SpanContext | null; /** * Propagates {@link SpanContext} through Trace Context format propagation. * * Based on the Trace Context specification: * https://www.w3.org/TR/trace-context/ */ export declare class W3CTraceContextPropagator implements TextMapPropagator { inject(context: Context, carrier: unknown, setter: TextMapSetter): void; extract(context: Context, carrier: unknown, getter: TextMapGetter): Context; fields(): string[]; } //# sourceMappingURL=W3CTraceContextPropagator.d.ts.map