Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
26 lines
1.3 KiB
Plaintext
26 lines
1.3 KiB
Plaintext
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 |