-
-
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
Handle AggregateErrors #5469
Comments
Hey, thanks for writing in. I agree this would be a cool integration to include, backlogging for now, but PRs are welcome for those who would like to help out! It would probably work similar to the |
I directly opened a feature request instead of a pull request because I think there are some product & design decisions to be made for the Sentry itself first. Because having only a functionality on the JS SDK means nothing by itself without the intention and clear expectations on the UI side since this requires a new way of displaying the aggregated errors, different than but compatible with the current linked errors: otherwise you wouldn't be able to differentiate linked and aggregated errors in the event detail page. As for the implementation ideas: It would work similar to LinkedErrors, but not exactly the same. I think it needs to work in harmony with LinkedErrors. See a complex but possible scenario below: Legend:
Sample error chain:
If Sentry team is down with these suggestions & possibilities there in and has an idea about what kind of updates will/would need to happen on the UI side then I can try to create PoC PR and you can use it to implement & test the UI? I can most probably even open a PR for the Sentry UI itself but still would need to know what kind of a UI is needed first. |
Great point. We don't have support for this at the moment, since our event schema expects a list of https://develop.sentry.dev/sdk/event-payloads/exception I'm going to circle this around internally and see what folks think! Thank you for the quick response :) |
Hey as an update - we are looking to try to solve this across all the SDKs internally. We’ll update this issue when we have more information related to that! |
We're tracking this at Sentry: getsentry/sentry#37716 as it requires some product changes. Won't be prioritized anytime soon, but will be in the future! |
Hi. Just wanted to ask anyone who's interested in this topic to chime in on the other issue, starting here: |
Problem Statement
Hi,
I think both on the JS SDK side and Sentry side things like AggregateError needs to be handled a bit more specifically in a built-in way. Basically AggregateError is a type of error that groups other kinds of errors together and can have an
errors
property on it, which itself is an array of errors.On the SDK side: they should be sent in the report request and in the Sentry UI they should be shown in a given error detail page. I think these can be handled in the same or similar way to linked errors.
Also in Python we have ExceptionGroup, in .NET we have AggregateException, and for the languages that does not have this kind of thing directly; something similar can be implemented in the user-land.
Solution Brainstorm
Most probably a new integration like
AggregateErrors
would do the job on the SDKs sides via both handling the language specific built-in ones and/or allowing custom implementations (so people that dont care about them dont need to enable/add it to their SDK instance).The text was updated successfully, but these errors were encountered: