Skip to content
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

Grouping of issues differs depending on mechanism #88663

Open
adinauer opened this issue Apr 3, 2025 · 2 comments
Open

Grouping of issues differs depending on mechanism #88663

adinauer opened this issue Apr 3, 2025 · 2 comments

Comments

@adinauer
Copy link
Member

adinauer commented Apr 3, 2025

Environment

SaaS (https://sentry.io/)

Steps to Reproduce

Send in a Java exception with a cause from v7 and v8 of Java SDK.

Throwable ex = new RuntimeException("outer exception", new ArithmeticException("cause (inner exception)"));
Sentry.captureException(ex);

Expected Result

Both exceptions should show up on the same issue in Sentry.

Actual Result

Two separate issues are created in Sentry.

Main difference I was able to spot is that we're now sending mechanism in v8 and did not in v7:

"mechanism":
{
    "type": "chained",
    "exception_id": 1,
    "parent_id": 0
}

... parent ...
"mechanism":
{
    "type": "chained",
    "exception_id": 0
}

Product Area

Issues

Link

No response

DSN

No response

Version

No response

@armenzg
Copy link
Member

armenzg commented Apr 3, 2025

If you look download the JSON events and look at the diff of the stack traces, you will see there are various frames that are different.

Image

@adinauer
Copy link
Member Author

adinauer commented Apr 3, 2025

In "Event Grouping Info | Grouping" the difference is the order of exceptions.
The difference you mentioned is very likely just because we upgraded some dependencies in the sample between v7 and v8.

@romtsn romtsn moved this from Needs Discussion to In Progress in Mobile SDKs Apr 9, 2025
@romtsn romtsn moved this from In Progress to In Investigation in Mobile SDKs Apr 9, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Investigation
Development

No branches or pull requests

3 participants