@vtex/diagnostics-nodejs
Version:
Diagnostics library for Node.js applications
12 lines • 927 B
TypeScript
import { Context } from "@opentelemetry/api";
export declare function addBaggageToContext(ctx: Context, key: string, value: string): Context;
export declare function addBaggageItemsToContext(ctx: Context, items: Record<string, string>): Context;
export declare function getBaggageFromContext(ctx: Context, key: string): string | undefined;
export declare function getAllBaggageFromContext(ctx: Context): Record<string, string>;
export declare function setBaggage(key: string, value: string): void;
export declare function addBaggage(items: Record<string, string>): void;
export declare function getBaggage(key: string): string | undefined;
export declare function getActiveBaggage(): Record<string, string>;
export declare function applyBaggageToActiveContext(key: string, value: string): void;
export declare function applyBaggageItemsToActiveContext(items: Record<string, string>): void;
//# sourceMappingURL=baggage.d.ts.map