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
+26
View File
@@ -0,0 +1,26 @@
import Config = require("./Config");
declare class CorrelationIdManager {
private static TAG;
static correlationIdPrefix: string;
static w3cEnabled: boolean;
private static pendingLookups;
private static completedLookups;
private static requestIdMaxLength;
private static currentRootId;
static queryCorrelationId(config: Config, callback: (correlationId: string) => void): void;
static cancelCorrelationIdQuery(config: Config, callback: (correlationId: string) => void): void;
/**
* Generate a request Id according to https://github.com/lmolkova/correlation/blob/master/hierarchical_request_id.md
* @param parentId
*/
static generateRequestId(parentId: string): string;
/**
* Given a hierarchical identifier of the form |X.*
* return the root identifier X
* @param id
*/
static getRootId(id: string): string;
private static generateRootId();
private static appendSuffix(parentId, suffix, delimiter);
}
export = CorrelationIdManager;