fix(sessions): Missing mechanism.handled is not considered crash#3353
Merged
Conversation
krystofwoldrich
requested review from
armcknight,
brustolin and
philipphofmann
as code owners
October 19, 2023 08:39
mechanism.handled is not considered crash
Contributor
Performance metrics 🚀
|
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| ddc9b9a | 1201.71 ms | 1226.70 ms | 24.99 ms |
| 7bb0873 | 1193.70 ms | 1222.74 ms | 29.04 ms |
| a9103fe | 1221.49 ms | 1243.33 ms | 21.84 ms |
| 6943de0 | 1230.02 ms | 1235.32 ms | 5.30 ms |
| 4a947cf | 1230.73 ms | 1239.38 ms | 8.65 ms |
| 965db8a | 1211.61 ms | 1226.60 ms | 14.99 ms |
| fc163f5 | 1224.17 ms | 1248.24 ms | 24.08 ms |
| 1bbcb9c | 1192.51 ms | 1231.96 ms | 39.45 ms |
| bef2003 | 1248.18 ms | 1258.86 ms | 10.68 ms |
| 67460f4 | 1244.56 ms | 1255.96 ms | 11.40 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| ddc9b9a | 20.76 KiB | 420.40 KiB | 399.65 KiB |
| 7bb0873 | 22.85 KiB | 407.09 KiB | 384.24 KiB |
| a9103fe | 20.76 KiB | 426.95 KiB | 406.19 KiB |
| 6943de0 | 20.76 KiB | 393.33 KiB | 372.57 KiB |
| 4a947cf | 20.76 KiB | 399.69 KiB | 378.92 KiB |
| 965db8a | 22.84 KiB | 403.24 KiB | 380.39 KiB |
| fc163f5 | 20.76 KiB | 436.30 KiB | 415.54 KiB |
| 1bbcb9c | 20.76 KiB | 426.10 KiB | 405.34 KiB |
| bef2003 | 22.85 KiB | 407.73 KiB | 384.88 KiB |
| 67460f4 | 20.76 KiB | 426.15 KiB | 405.39 KiB |
Previous results on branch: fix/mechanism-handled-missing-not-crash
Startup times
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| b042784 | 1229.33 ms | 1243.17 ms | 13.84 ms |
| 7a760cb | 1250.71 ms | 1262.44 ms | 11.73 ms |
| 74d9500 | 1255.02 ms | 1257.88 ms | 2.86 ms |
| dd0b395 | 1229.31 ms | 1246.02 ms | 16.71 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| b042784 | 22.85 KiB | 410.98 KiB | 388.13 KiB |
| 7a760cb | 22.85 KiB | 410.98 KiB | 388.13 KiB |
| 74d9500 | 22.85 KiB | 410.98 KiB | 388.13 KiB |
| dd0b395 | 22.85 KiB | 410.98 KiB | 388.13 KiB |
Codecov Report
@@ Coverage Diff @@
## main #3353 +/- ##
=============================================
+ Coverage 89.182% 89.254% +0.071%
=============================================
Files 500 500
Lines 54488 54573 +85
Branches 19561 19591 +30
=============================================
+ Hits 48594 48709 +115
+ Misses 5028 4890 -138
- Partials 866 974 +108
... and 39 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
…getsentry/sentry-cocoa into fix/mechanism-handled-missing-not-crash
…getsentry/sentry-cocoa into fix/mechanism-handled-missing-not-crash
brustolin
approved these changes
Oct 19, 2023
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.
📜 Description
Some events have
mechanism.handledmissing inevents.exceptions.valuesand those events should not crash the session.This happens for example in Flutter.
Java SDK does this already.
https://github.com/getsentry/sentry-java/blob/7ca9895a31aae5edd0efa8fd98a606532f95d731/sentry/src/main/java/io/sentry/SentryEvent.java#L220-L223
💚 How did you test it?
📝 Checklist
You have to check all boxes before merging:
sendDefaultPIIis enabled.🔮 Next steps