UNPKG

803 BTypeScriptView Raw
1import * as api from '@opentelemetry/api';
2/**
3 * TraceState must be a class and not a simple object type because of the spec
4 * requirement (https://www.w3.org/TR/trace-context/#tracestate-field).
5 *
6 * Here is the list of allowed mutations:
7 * - New key-value pair should be added into the beginning of the list
8 * - The value of any key can be updated. Modified keys MUST be moved to the
9 * beginning of the list.
10 */
11export declare class TraceState implements api.TraceState {
12 private _internalState;
13 constructor(rawTraceState?: string);
14 set(key: string, value: string): TraceState;
15 unset(key: string): TraceState;
16 get(key: string): string | undefined;
17 serialize(): string;
18 private _parse;
19 private _keys;
20 private _clone;
21}
22//# sourceMappingURL=TraceState.d.ts.map
\No newline at end of file