Thanks for sharing your example and for the feedback!

I’ve checked your example and it appears that your app might have a resource leak issue.

I didn’t find call of namespace.bindEmitter() function in your CLS integration middleware:

You can see an example of bindEmitter() usage in cls-rtracer:

Also see cls-hooked docs for more details:

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