-
-
Notifications
You must be signed in to change notification settings - Fork 363
fix: Set handled to false for fatal app hangs #5514
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
Conversation
Fatal app hangs didn't have mechanism.handled = false, which should be the case because it's an unhandled error.
@sentry review |
On it! We are reviewing the PR and will provide feedback shortly. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5514 +/- ##
=============================================
+ Coverage 86.141% 86.249% +0.107%
=============================================
Files 402 403 +1
Lines 34766 34908 +142
Branches 15026 15157 +131
=============================================
+ Hits 29948 30108 +160
+ Misses 4771 4757 -14
+ Partials 47 43 -4
... and 27 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
🚀 New features to boost your workflow:
|
PR DescriptionThis pull request addresses an issue where fatal app hang events were not being correctly categorized as unhandled exceptions within Sentry. The goal is to ensure that these events are properly flagged, allowing for more accurate error tracking and prioritization. Click to see moreKey Technical ChangesThe primary technical change involves setting the Architecture DecisionsThe decision to set Dependencies and InteractionsThis change primarily affects the Risk ConsiderationsThe main risk is the potential for unintended consequences if other parts of the Sentry SDK rely on the default Notable Implementation DetailsThe implementation directly modifies the |
Tests/SentryTests/Integrations/ANR/SentryANRTrackingIntegrationTests.swift
Show resolved
Hide resolved
Tests/SentryTests/Integrations/ANR/SentryANRTrackingIntegrationTests.swift
Show resolved
Hide resolved
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
db9572a | 1223.13 ms | 1241.60 ms | 18.47 ms |
db9572a | 1212.61 ms | 1237.73 ms | 25.13 ms |
5cfc768 | 1220.74 ms | 1245.06 ms | 24.32 ms |
35c962f | 1207.61 ms | 1235.90 ms | 28.29 ms |
8ea5293 | 1242.70 ms | 1262.25 ms | 19.55 ms |
8047b99 | 1226.37 ms | 1246.63 ms | 20.26 ms |
d38165b | 1211.41 ms | 1242.49 ms | 31.08 ms |
b13e93a | 1236.24 ms | 1247.33 ms | 11.08 ms |
acac774 | 1217.76 ms | 1253.29 ms | 35.52 ms |
db9572a | 1200.27 ms | 1234.80 ms | 34.53 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
db9572a | 23.75 KiB | 858.64 KiB | 834.89 KiB |
db9572a | 23.75 KiB | 858.65 KiB | 834.90 KiB |
5cfc768 | 23.75 KiB | 850.73 KiB | 826.98 KiB |
35c962f | 23.75 KiB | 854.77 KiB | 831.02 KiB |
8ea5293 | 23.75 KiB | 852.24 KiB | 828.49 KiB |
8047b99 | 23.75 KiB | 855.37 KiB | 831.62 KiB |
d38165b | 23.75 KiB | 855.37 KiB | 831.62 KiB |
b13e93a | 23.75 KiB | 855.37 KiB | 831.62 KiB |
acac774 | 23.75 KiB | 866.51 KiB | 842.76 KiB |
db9572a | 23.75 KiB | 858.69 KiB | 834.93 KiB |
📜 Description
Fatal app hangs didn't have
mechanism.handled = false
, which should be the case because it's an unhandled error.💡 Motivation and Context
A customer brought this up.
💚 How did you test it?
Unit tests and triggering a fatal app hang via simulator: https://sentry-sdks.sentry.io/issues/6675226860/events/e75fd272f1604537b5a8b3d9e6e7b99f/?project=5428557
📝 Checklist
You have to check all boxes before merging:
sendDefaultPII
is enabled.