27 lines
1.0 KiB
TypeScript
27 lines
1.0 KiB
TypeScript
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;
|