Skip to content

AggregateExceptions do not get sent to Sentry properly #15707

Description

@AbhiPrasad

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/browser

SDK Version

9.5.0

Framework Version

No response

Link to Sentry event

https://sentry-sdks.sentry.io/issues/6415543348/?project=4504689757257728&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D&referrer=issue-stream&sort=date&stream_index=0

Reproduction Example/SDK Setup

<!DOCTYPE html>
<html>
    <head>
        <script src="INSERT_LOADER_SCRIPT_HERE"></script>
    </head>
    <body>
        <script defer>
            function main() {
                throw new AggregateError([new Error("some error")], "Hello");
            }
            main();
        </script>
    </body>
</html>

Steps to Reproduce

Run the example with the loader on 9.x.

See that an AggregateError does get sentry to Sentry, but there is no linked Error with message "some error".

Expected Result

An Aggregate Error as per https://github.com/getsentry/rfcs/blob/main/text/0079-exception-groups.md.

We should be setting is_exception_group: true on the AggregateError sent to Sentry.

Actual Result

https://sentry-sdks.sentry.io/issues/6415543348/?project=4504689757257728&query=is%3Aunresolved%20issue.priority%3A%5Bhigh%2C%20medium%5D&referrer=issue-stream&sort=date&stream_index=0

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions