-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Transactions aren't capturing async child spans #3659
Comments
The elastic-apm-node library may provide some insight on how to redesign things better |
You might need to do Sentry.configureScope((scope) => {
scope.setSpan(transaction);
}); |
I'll try within the next hour. Why isn't that done by default? |
No clue 🤷 , it is in the example on https://docs.sentry.io/platforms/node/performance/ |
wtf it actually worked. but this to me still seems like bizarre/unexpected behaviour and warrants further explanation or maybe a fix |
My guess would be that you need to do this for your 'root' transaction but Since you're switching you might run into #3660 as well btw. |
Yeah weird. With elastic-apm-node I just had an init call, and a simple one liner in the block of interest, no need to finish it or call any weird methods:
I hope this lib can learn from the others and implement a simpler approach. |
we are aware of this issue, and at least for this specific topic it appears a fix was possible so I will close the issue and we address overarching topic internally |
Package + Version
@sentry/node
Version:
Description
In the above code, many mysql functions are running, but none of the spans are showing up in the log. I breakpointed inside @sentry/tracing/dist/integrations/mysql.js, and the problem seems to be this code is failing:
getSpan() returns undefined.
The transaction logic doesn't seem to be very 'smart', it's not propagating the scope properly via the stack.
This is a big problem for our business, we want to switch to your product from Elastic APM but this makes that untenable.
The text was updated successfully, but these errors were encountered: