UNPKG

349 BTypeScriptView Raw
1export interface TraceContext {
2 version: string;
3 traceId: string;
4 parentId: string;
5 sample: boolean;
6}
7/**
8 * Extracts trace context from given carrier object, if any.
9 *
10 * Supports Cloud Trace and traceparent format.
11 *
12 * @param carrier
13 */
14export declare function extractTraceContext(carrier: unknown): TraceContext | undefined;