UNPKG

@opentelemetry/core

Version:

OpenTelemetry Core provides constants and utilities shared by all OpenTelemetry SDK packages.

16 lines 718 B
import { Baggage, BaggageEntryMetadata } from '@opentelemetry/api'; declare 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; /** * Parse a string serialized in the baggage HTTP Format (without metadata): * https://github.com/w3c/baggage/blob/master/baggage/HTTP_HEADER_FORMAT.md */ export declare function parseKeyPairsIntoRecord(value?: string): Record<string, string>; export {}; //# sourceMappingURL=utils.d.ts.map