UNPKG

718 BTypeScriptView Raw
1import { Baggage, BaggageEntryMetadata } from '@opentelemetry/api';
2declare type ParsedBaggageKeyValue = {
3 key: string;
4 value: string;
5 metadata: BaggageEntryMetadata | undefined;
6};
7export declare function serializeKeyPairs(keyPairs: string[]): string;
8export declare function getKeyPairs(baggage: Baggage): string[];
9export declare function parsePairKeyValue(entry: string): ParsedBaggageKeyValue | undefined;
10/**
11 * Parse a string serialized in the baggage HTTP Format (without metadata):
12 * https://github.com/w3c/baggage/blob/master/baggage/HTTP_HEADER_FORMAT.md
13 */
14export declare function parseKeyPairsIntoRecord(value?: string): Record<string, string>;
15export {};
16//# sourceMappingURL=utils.d.ts.map
\No newline at end of file