Hacker News new | ask | show | jobs
by imauld 2980 days ago
> I believe most people usually passing context in function call and combine it with open tracing.

What about that is not working for you? I haven't used Node at all but I imagine it would work about the same as described in the video you linked.

1 comments

I believe that's working but it's kind of pain because we need to passing context across function call. So I wonder whether there is better way to do that.

I believe node.js has async_hook feature that can capture context without passing function call, but it's still in experimental phase and won't work for tracing

Like I said I've never worked with Node but being explicit seems like a better pattern than having some background async process do it.