tdem-web-sdk 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -28,6 +28,15 @@ export declare class TraceRequestHeader {
28
28
  private urlMatches;
29
29
  }
30
30
  export declare const isTraceHeader: (key: string) => boolean;
31
+ export interface TraceContext {
32
+ traceId: string;
33
+ spanId: string;
34
+ }
35
+ /**
36
+ * 从请求头中解析 trace 上下文(traceId + spanId)。
37
+ * 未命中追踪头时返回空字符串对,行为与原解析函数一致(不抛错)。
38
+ */
39
+ export declare const parseTraceContext: (headers: HeadersInit | undefined) => TraceContext;
31
40
  export declare const parseNormalTraceRequestHeader: (headers: HeadersInit | undefined) => string;
32
41
  export * from './jwt';
33
42
  export * from './ot-js';