Hi Henry.

Yes, you’re right CLS may loose the context if some libraries/middlewares on the async call chain doesn’t play nice with Async Hooks API. However, it’s not very common and there shouldn’t be any problems libraries/middlewares built on top of standard APIs.

Thanks for sharing your experience. Could you point me at any known issues on GitHub or somewhere else that you have experienced?

Anyway, in order to mitigate most obvious problems, there are some recommendations in the cls-tracer's readme. But I strongly advice to test apps thoroughfully in order to make sure that everything works as expected.

Software engineer at Hazelcast. Node.js core collaborator. Architectural design and challenging problems are the things that I love in IT.

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