Files
smom-dbis-138/packages/integration-foundation/dist/observability/correlation.d.ts

13 lines
568 B
TypeScript
Raw Normal View History

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>;