-
-
Notifications
You must be signed in to change notification settings - Fork 227
Improve SentryHttpFailedRequestHandler issue grouping #4724
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
Improve SentryHttpFailedRequestHandler issue grouping #4724
Conversation
…tion stack trace where possible, to improve Issue grouping.
|
This looks awesome @ericsampson - we're a bit tight on time but will definitely do our best to get this reviewed and included in version 6... it's a slight change in behaviour so might be good to do this in the major release. |
|
Totally understood @jamescrosswell! Thanks. Would it be worthwhile to start just by approving all the GH workflows to run to make sure that they don't surface any issues.
1b) Should I add a release note line?
Best, |
Flash0ver
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you so much for this improvement! Well done!
Sorry for my late review.
Also, great job on the testing part.
|
@Flash0ver thanks for the review! Comments make sense, I'll work through them. |
|
@Flash0ver |
Co-authored-by: Stefan Pölz <38893694+Flash0ver@users.noreply.github.com>
jamescrosswell
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suggested preserving one comment that got lost when inlining what used to be an extension method... but otherwise looks good to me.
The failing Format code workflow is an issue with our CI when running that workflow on forked reporitories... so don't worry about that (@Flash0ver or I can fix that).
Thank you so much for contributing!
Co-authored-by: James Crosswell <jamescrosswell@users.noreply.github.com>
|
@Flash0ver want to do a final re-review whenever you get a chance? Cheers |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #4724 +/- ##
==========================================
+ Coverage 73.83% 73.85% +0.02%
==========================================
Files 485 485
Lines 17685 17689 +4
Branches 3496 3496
==========================================
+ Hits 13057 13065 +8
+ Misses 3768 3763 -5
- Partials 860 861 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Needs another merge from main ... and I got two more nitpicks.
After that it's a ✅ from me.
Also doing a @sentry review for good measure.
Thanks for the great improvement ... and an additional thank you for improving our existing test suite!
|
@sentry review |
…ility Co-authored-by: Stefan Pölz <38893694+Flash0ver@users.noreply.github.com>
Co-authored-by: Stefan Pölz <38893694+Flash0ver@users.noreply.github.com>
Co-authored-by: James Crosswell <jamescrosswell@users.noreply.github.com>
|
@ericsampson, all ✅ from a review perspective. There are merge conflicts, that I'm afraid we cannot view nor fix as we don't have push permissions. Anyway, sorry for that! We'll merge the PR after resolving. |
|
@Flash0ver @jamescrosswell thanks for your help getting this through! Having outside contributors add their updates in a separate temporary |
It's a problem that affects us when making changes from the same repository, to be honest. Fixing it likely requires changes to our release process (which is shared across Sentry) but yes, it's been a pain for long enough that we should do something about it. |
|
@ericsampson just merged. Huge thank you once again for the contribution! |
Resolves #3582
With the current SentryHttpFailedRequestHandler, the captured exception stack trace is always the same two frames; this leads to all events getting lumped into a single Issue, even though the application code path (and remote API) are totally different. As you can imagine, this is less than ideal :)
This PR addresses this issue by capturing a full stack trace on .NET 6+ using
ExceptionDispatchInfo.SetCurrentStackTrace.Tests have been expanded and improved. The test of the new functionality (
HandleResponse_StackTraceIncludesCallerContext) was verified to fail using the existing code, and pass using the new code.Very similar changes could likely be made to the
SentryGraphQLHttpFailedRequestHandler.csto give the same improvement, but I didn't want to bundle too many changes together into one PR.I'd love to get this into 5.16.3 or 6.0.0 if possible, depending on the release timing :)
Thanks!