@uphold/opentelemetry-mutable-baggage
Version:
Package that allows an OpenTelemetry baggage to be mutable.
15 lines • 663 B
TypeScript
/**
* This file was copied from '@opentelemetry/api' since it does export these utility functions since v2.
*/
import { Baggage, BaggageEntryMetadata } from '@opentelemetry/api';
type ParsedBaggageKeyValue = {
key: string;
value: string;
metadata: BaggageEntryMetadata | undefined;
};
export declare function serializeKeyPairs(keyPairs: string[]): string;
export declare function getKeyPairs(baggage: Baggage): string[];
export declare function parsePairKeyValue(entry: string): ParsedBaggageKeyValue | undefined;
export declare function parseKeyPairsIntoRecord(value?: string): Record<string, string>;
export {};
//# sourceMappingURL=utils.d.ts.map