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

Rework handling of AggregateException to align with Sentry Exception Groups #2287

Merged
merged 11 commits into from May 22, 2023

Conversation

mattjohnsonpint
Copy link
Contributor

@mattjohnsonpint mattjohnsonpint commented Apr 4, 2023

This PR updates the .NET SDK to align with the new "exception groups" feature of Sentry. See #2240, and Sentry RFC 79 for details.

Aligns with full changes listed at getsentry/sentry#37716 (comment)

This changes how AggregateException is handled. Instead of filtering them out client-side, the SDK marks them as an "exception group", and adds includes data that represents the hierarchical structure of inner exceptions. Sentry now recognizes this server-side, improving the accuracy of the issue detail page.

Accordingly, the KeepAggregateException option is now obsolete and does nothing. Please remove any usages of KeepAggregateException.

NOTE: If running Self-Hosted Sentry, you should wait to adopt this SDK update until after updating to the 23.6.0 (est. June 2023) release of Sentry. The effect of updating the SDK early will be as if KeepAggregateException = true was set. That will not break anything, but may affect issue grouping and alerts.

Closes #2240.

@github-actions
Copy link
Contributor

github-actions bot commented Apr 4, 2023

Fails
🚫 Please consider adding a changelog entry for the next release.
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Instructions and example for changelog

Please add an entry to CHANGELOG.md to the "Unreleased" section. Make sure the entry includes this PR's number.

Example:

## Unreleased

- Rework handling of `AggregateException` to align with Sentry Exception Groups ([#2287](https://github.com/getsentry/sentry-dotnet/pull/2287))

If none of the above apply, you can opt out of this check by adding #skip-changelog to the PR description.

Generated by 🚫 dangerJS against 83c15af

@mattjohnsonpint mattjohnsonpint changed the title WIP: SDK changes for exception groups Rework handling of AggregateException to align with Sentry Exception Groups Apr 5, 2023
@mattjohnsonpint mattjohnsonpint linked an issue Apr 5, 2023 that may be closed by this pull request
@mattjohnsonpint mattjohnsonpint force-pushed the feat/exception-groups branch 3 times, most recently from b485a46 to 2c65ad7 Compare April 13, 2023 17:22
@mattjohnsonpint
Copy link
Contributor Author

Reminder to self: Update changelog before publishing to include note about which Sentry version this is compatible with.

@mattjohnsonpint mattjohnsonpint marked this pull request as ready for review April 13, 2023 18:42
@mattjohnsonpint mattjohnsonpint marked this pull request as draft April 13, 2023 18:46
@mattjohnsonpint
Copy link
Contributor Author

This can be shipped as soon as getsentry/sentry#48653 is completed and released to production.

Also, for the best experience with exception groups, self-hosted Sentry users should take the corresponding update when it is available.

@mattjohnsonpint mattjohnsonpint marked this pull request as ready for review May 22, 2023 17:43
@mattjohnsonpint mattjohnsonpint merged commit 2a8813a into main May 22, 2023
17 checks passed
@mattjohnsonpint mattjohnsonpint deleted the feat/exception-groups branch May 22, 2023 17:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rework handling of AggregateException
3 participants