@uphold/opentelemetry-mutable-baggage
Version:
Package that allows an OpenTelemetry baggage to be mutable.
12 lines • 557 B
TypeScript
import { Baggage, BaggageEntry } from '@opentelemetry/api';
export declare class MutableBaggageImpl implements Baggage {
private entries;
constructor(entries?: Map<string, BaggageEntry>);
getEntry(key: string): BaggageEntry | undefined;
getAllEntries(): [string, BaggageEntry][];
setEntry(key: string, entry: BaggageEntry): MutableBaggageImpl;
removeEntry(key: string): MutableBaggageImpl;
removeEntries(...keys: string[]): MutableBaggageImpl;
clear(): MutableBaggageImpl;
}
//# sourceMappingURL=mutable-baggage-impl.d.ts.map