Hi Gustavo.

Thanks for your feedback. I’ve checked request-id library and it’s pretty simple. In order to have all features of request-id in cls-tracer's middlewares, I could add support for echoing back request ids in a response header (X-Client-ID or X-Request-ID).

On the other hand, that library doesn’t support anything similar to CLS, thus it doesn’t allow fetching request id from modules that don’t have req object available.



Distributed systems gazer. Node.js contributor. Occasional tech blogger and speaker.

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store