2022-07-12 09:00:22 +02:00

22 lines
818 B
TypeScript

import { TraceState } from '../trace_state';
/**
* TraceState must be a class and not a simple object type because of the spec
* requirement (https://www.w3.org/TR/trace-context/#tracestate-field).
*
* Here is the list of allowed mutations:
* - New key-value pair should be added into the beginning of the list
* - The value of any key can be updated. Modified keys MUST be moved to the
* beginning of the list.
*/
export declare class TraceStateImpl implements TraceState {
private _internalState;
constructor(rawTraceState?: string);
set(key: string, value: string): TraceStateImpl;
unset(key: string): TraceStateImpl;
get(key: string): string | undefined;
serialize(): string;
private _parse;
private _keys;
private _clone;
}
//# sourceMappingURL=tracestate-impl.d.ts.map