interface IDistributedTraceContext {
    getName(): string;
    getSpanId(): string;
    getTraceFlags(): number;
    getTraceId(): string;
    setName(pageName: string): void;
    setSpanId(newValue: string): void;
    setTraceFlags(newValue?: number): void;
    setTraceId(newValue: string): void;
}

Methods

  • Returns the unique identifier for a trace. All requests / spans from the same trace share the same traceId. Must be read from incoming headers or generated according to the W3C TraceContext specification, in a hex representation of 16-byte array. A.k.a. trace-id, TraceID or Distributed TraceID

    Returns string