Handle AggregateErrors
See original GitHub issueProblem 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).
Issue Analytics
- State:
- Created a year ago
- Reactions:3
- Comments:5 (4 by maintainers)
Top GitHub Comments
We’re tracking this at Sentry: https://github.com/getsentry/sentry/issues/37716 as it requires some product changes. Won’t be prioritized anytime soon, but will be in the future!
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!