tracestate-impl.d.ts 818 B

12345678910111213141516171819202122
  1. import { TraceState } from '../trace_state';
  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. */
  11. export declare class TraceStateImpl implements TraceState {
  12. private _internalState;
  13. constructor(rawTraceState?: string);
  14. set(key: string, value: string): TraceStateImpl;
  15. unset(key: string): TraceStateImpl;
  16. get(key: string): string | undefined;
  17. serialize(): string;
  18. private _parse;
  19. private _keys;
  20. private _clone;
  21. }
  22. //# sourceMappingURL=tracestate-impl.d.ts.map