cls-rtracer
CLS-based request id generation for Express, Fastify, Koa and Hapi
Express & Koa middlewares and Fastify & Hapi plugins for CLS-based request ID generation, batteries included. An out-of-the-box solution for adding request IDs into your logs. Check out this blog post that describes the rationale behind cls-rtracer. Automatically generates a UUID V1 value as the id for each request and stores it in AsyncLocalStorage. Optionally, if the request contains an X-Request-Id header, uses its value instead. Allows to obtain the generated request id anywhere in your...