I have custom code handling async jobs. I'd like to have each async job as a separate transaction - just as each HTTP request/response in the server is a separate transaction.
How can I achieve this with node.js Sentry SDK?
I've been trying to tweak this code for hours and I still don't know how it should be done. See my current code:
Core or SDK?
Platform/SDK
Which part? Which one?
nodejs
Description
I have custom code handling async jobs. I'd like to have each async job as a separate transaction - just as each HTTP request/response in the server is a separate transaction.
How can I achieve this with node.js Sentry SDK?
I've been trying to tweak this code for hours and I still don't know how it should be done. See my current code:
How can I improve it, so that several async jobs aren't coupled with each other by a single trace id?
Currently this is how it looks for me. It's awful to me, as it can have hundreds of completely unrelated async jobs put in a single Sentry trace.
Suggested Solution