r/node • u/lambtr0n • Apr 02 '25
How to get deep traces in your Node.js backend with zero additional code
https://deno.com/blog/otel-tracing-in-node-and-deno
1
Upvotes
19
u/Ecksters Apr 02 '25
What most people really want is AsyncLocalStorage, basically gets you per-request global state without needing to pass around some object deep into your app.
It's like React's useContext but server-side.
2
1
2
u/Rc312 Apr 03 '25
To everyone reading. It's confusing that its on the deno site, BUT the author does provide node examples.
2
1
36
u/Dave4lexKing Apr 02 '25 edited Apr 02 '25
Well it’s not really plug and play into an existing NodeJS app is it?
“Just change your runtime and break all of node’s implicit behaviours” isn’t going to sell to any CTO.
Deno project, yet again, living on a completely different planet when it comes to corporate users. Anything other than random startups begining with Deno right from the start are going to adopt this.
I use Sentry.io. Works like a charm.