-
-
Notifications
You must be signed in to change notification settings - Fork 323
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
Fix: Dont create transaction for unused ViewControllers #4448
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #4448 +/- ##
=============================================
+ Coverage 91.318% 91.359% +0.040%
=============================================
Files 609 610 +1
Lines 49855 49960 +105
Branches 17932 18055 +123
=============================================
+ Hits 45527 45643 +116
+ Misses 4236 4227 -9
+ Partials 92 90 -2
... and 19 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
add8416 | 1270.72 ms | 1300.38 ms | 29.66 ms |
2b55154 | 1231.36 ms | 1247.82 ms | 16.46 ms |
ceb2092 | 1208.19 ms | 1236.46 ms | 28.27 ms |
24e0744 | 1229.04 ms | 1250.10 ms | 21.06 ms |
7bc3c0d | 1259.74 ms | 1268.45 ms | 8.71 ms |
46467d0 | 1229.00 ms | 1241.27 ms | 12.27 ms |
2401cbd | 1219.49 ms | 1250.14 ms | 30.65 ms |
60bfc91 | 1220.39 ms | 1250.89 ms | 30.50 ms |
2a8b38b | 1217.57 ms | 1235.16 ms | 17.59 ms |
42ef6ba | 1211.20 ms | 1228.17 ms | 16.96 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
add8416 | 21.58 KiB | 541.91 KiB | 520.33 KiB |
2b55154 | 22.84 KiB | 402.19 KiB | 379.34 KiB |
ceb2092 | 21.58 KiB | 670.39 KiB | 648.81 KiB |
24e0744 | 21.58 KiB | 709.06 KiB | 687.48 KiB |
7bc3c0d | 20.76 KiB | 427.35 KiB | 406.59 KiB |
46467d0 | 21.58 KiB | 698.11 KiB | 676.53 KiB |
2401cbd | 22.85 KiB | 408.85 KiB | 386.00 KiB |
60bfc91 | 20.76 KiB | 434.94 KiB | 414.18 KiB |
2a8b38b | 21.58 KiB | 424.30 KiB | 402.71 KiB |
42ef6ba | 21.58 KiB | 417.86 KiB | 396.28 KiB |
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.
Almost, LGTM. Thanks
Co-authored-by: Philipp Hofmann <[email protected]>
Instructions and example for changelogPlease add an entry to Example: ## Unreleased
- Dont create transaction for unused ViewControllers ([#4448](https://github.com/getsentry/sentry-cocoa/pull/4448)) If none of the above apply, you can opt out of this check by adding |
📜 Description
Its possible to create a view controller but never add it to the view hierarchy.
This will create a transaction with data that is not helpful
💚 How did you test it?
Unit tests
📝 Checklist
You have to check all boxes before merging:
sendDefaultPII
is enabled.