@villedemontreal/correlation-id
Version:
Express middleware to set a correlation in Express. The correlation id will be consistent across async calls within the handling of a request.
9 lines • 445 B
TypeScript
import * as express from 'express';
/**
* Correlation ID Middleware
*
* @param filter a filter which is going to be called with the request to see if a
* colleration id scope must be managed or not.
*/
export declare const createCorrelationIdMiddleware: (filter?: (req: express.Request) => boolean) => ((req: express.Request, res: express.Response, next: express.NextFunction) => void);
//# sourceMappingURL=correlationIdMiddleware.d.ts.map