Migrate to core CLS API (AsyncLocalStorage)
See original GitHub issue2.0.0 (or an experimental version of the library) could start using AsyncLocalStorage
instead of cls-hooked
:
https://nodejs.org/api/async_hooks.html#async_hooks_class_asynclocalstorage
That should be done once AsyncLocalStorage
is backported to Node.js v12.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:2
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Integrate AsyncLocalStorage with EventEmitter #33723
I'm going to port this library to AsyncLocalStorage . As a part of this migration I need to make ALS play nicely with...
Read more >AsyncLocalStorage for Easy Context Passing in Node.js
With Node.js 13.10, we got a a new feature called AsyncLocalStorage used to implement CLS (continuation local storage).
Read more >Async hooks | Node.js v19.3.0 Documentation
Please migrate away from this API, if you can. ... Async context tracking use cases are better served by the stable AsyncLocalStorage API....
Read more >nestjs-cls
A continuation-local* storage module compatible with NestJS' dependency injection based on AsyncLocalStorage. New: Version 3.0 introduces Proxy ...
Read more >One Node.js CLS API to rule them all | by Andrey Pechkurov
Node.js v13.10.0 introduced a built-in CLS API, namely, ... I'd like to thank all core collaborators who made AsyncLocalStorage possible ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You of course know this already, but
AsyncLocalStorage
is available inv12.17
. Do you have any timeline for when you’ll be able to start experimenting with it?Thanks @puzpuzpuz! Deployed to prod a couple of hours ago, and it’s looking good so far! The cases I knew where we lost context seems fixed now. I’ll check throughout the week if there are any cases we’re missing