Are there any npm modules that use async_hooks to retrieve async stack trace?

514 views Asked by At

There is a new API in node 8 called 'async_hook' which I believe should make it possible for a module author to print async stack traces. I'm looking for something similar to chrome dev-tools async stack-trace implementation but for use from console during dev/debug.

I know this will come with performance overhead -- but that's fine with me.

Is anyone aware of any modules under development that do this?

1

There are 1 answers

0
Guy Segev On

I wrote an npm module to track a user request context. You can use it or take some ideas from it.

The NPM module and a blog post about it