13 lines
568 B
TypeScript
13 lines
568 B
TypeScript
|
|
export declare const CORRELATION_ID_HEADER = "x-correlation-id";
|
||
|
|
export declare const REQUEST_ID_HEADER = "x-request-id";
|
||
|
|
export declare function generateCorrelationId(): string;
|
||
|
|
export declare function generateRequestId(): string;
|
||
|
|
export type CorrelationContext = {
|
||
|
|
correlationId: string;
|
||
|
|
requestId: string;
|
||
|
|
tenantId?: string;
|
||
|
|
entityId?: string;
|
||
|
|
};
|
||
|
|
export declare function createCorrelationContext(partial?: Partial<CorrelationContext>): CorrelationContext;
|
||
|
|
export declare function correlationHeaders(ctx: CorrelationContext): Record<string, string>;
|