first commit

This commit is contained in:
Stefan Hacker
2026-04-03 09:38:48 +02:00
commit 37ad745546
47450 changed files with 3120798 additions and 0 deletions
+22
View File
@@ -0,0 +1,22 @@
/**
* Helper class to manage parsing and validation of traceparent header. Also handles hierarchical
* back-compatibility headers generated from traceparent. W3C traceparent spec is documented at
* https://www.w3.org/TR/trace-context/#traceparent-field
*/
declare class Traceparent {
static DEFAULT_TRACE_FLAG: string;
static DEFAULT_VERSION: string;
legacyRootId: string;
parentId: string;
spanId: string;
traceFlag: string;
traceId: string;
version: string;
constructor(traceparent?: string, parentId?: string);
static isValidTraceId(id: string): boolean;
static isValidSpanId(id: string): boolean;
getBackCompatRequestId(): string;
toString(): string;
updateSpanId(): void;
}
export = Traceparent;