Repository navigation
Conversation
nativeLinkedErrorsIntegration added the linked errors after the captured error in event.exception.values. Sentry reads chained exceptions oldest first and uses the last one for the issue title. Because of this, the deepest cause became the title, not the error that the app captured. The integration now reverses the collected chain and puts it before the captured error. This matches linkedErrorsIntegration in the browser SDK. The change also applies to Java and Objective-C causes and to the nativeStackAndroid exception. The order is part of the grouping hash, so issues for errors with a cause may regroup. The CHANGELOG entry tells users about this. Fixes #7178
Replace the PR_NUMBER placeholder with the number of PR #7181.
Contributor
Semver Impact of This PR⚪ None (no version bump detected) 📋 Changelog PreviewThis is how your changes will appear in the changelog.
🤖 This preview updates automatically when you update the PR. |
Contributor
PR risk: mediumFor commit Main concerns: data sent to Sentry, reach. This label is a hint for reviewers, not an approval. |
# Conflicts: # CHANGELOG.md
Contributor
alwx
marked this pull request as ready for review
December 4, 2026 10:47
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
📢 Type of change
📜 Description
nativeLinkedErrorsIntegrationnow puts the linked errors before the captured error inevent.exception.values, oldest first. This matcheslinkedErrorsIntegrationin the browser SDK. The same order applies to Java and Objective-C causes and tonativeStackAndroid.💡 Motivation and Context
Sentry uses the last exception in
valuesfor the issue title. Because the integration added the causes at the end, the deepestcausebecame the title, not the captured error. Fixes #7178.Issues for errors with a
causemay regroup, because the order is part of the grouping hash. The CHANGELOG entry says this.💚 How did you test it?
I updated the 4 existing
nativelinkederrorstests to expect the new order and added a test for a chain of three errors. Without the fix, 5 of the 6 tests fail.📝 Checklist
sendDefaultPIIis enabled.🔮 Next steps
A follow-up can set
mechanism.exception_idandparent_id, as the browser SDK does, so the Sentry UI shows the chain.