-
-
Notifications
You must be signed in to change notification settings - Fork 427
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
Adjust time-to-full-display span if reportFullDisplayed is called too early #2550
Conversation
ttfd end timestamp is now adjusted to the ttid end timestamp if called too early
|
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
4b32504 | 315.69 ms | 373.96 ms | 58.27 ms |
754021c | 358.70 ms | 361.98 ms | 3.28 ms |
c1399c1 | 345.06 ms | 385.49 ms | 40.43 ms |
5fa24ec | 326.29 ms | 384.53 ms | 58.24 ms |
fe30606 | 310.82 ms | 335.36 ms | 24.55 ms |
f6a135d | 263.96 ms | 383.59 ms | 119.63 ms |
14c083a | 350.82 ms | 388.86 ms | 38.04 ms |
4b32504 | 357.14 ms | 404.04 ms | 46.90 ms |
fe30606 | 327.46 ms | 351.74 ms | 24.28 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
4b32504 | 1.73 MiB | 2.34 MiB | 623.74 KiB |
754021c | 1.73 MiB | 2.33 MiB | 623.06 KiB |
c1399c1 | 1.73 MiB | 2.33 MiB | 620.61 KiB |
5fa24ec | 1.73 MiB | 2.33 MiB | 620.61 KiB |
fe30606 | 1.73 MiB | 2.34 MiB | 623.74 KiB |
f6a135d | 1.73 MiB | 2.33 MiB | 623.10 KiB |
14c083a | 1.73 MiB | 2.33 MiB | 620.61 KiB |
4b32504 | 1.73 MiB | 2.34 MiB | 623.74 KiB |
fe30606 | 1.73 MiB | 2.34 MiB | 623.74 KiB |
Codecov ReportBase: 80.25% // Head: 80.28% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #2550 +/- ##
============================================
+ Coverage 80.25% 80.28% +0.03%
- Complexity 3983 3990 +7
============================================
Files 327 327
Lines 15010 15017 +7
Branches 1977 1977
============================================
+ Hits 12046 12057 +11
+ Misses 2187 2183 -4
Partials 777 777
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
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.
Nice one, looks good!
📜 Description
time-to-full-display
end timestamp is now adjusted to thetime-to-initial-display
end timestamp if called too earlyadded updateEndDate method to ISpan
💡 Motivation and Context
If the user calls the manual API
Sentry.reportFullDisplayed
too early, we would show thetime-to-full-display
span to be shorter than our automatically calculatedtime-to-initial-display
, which would be pretty confusing.This adjustment is done also by the Android system:
If this method is called before the activity's window is first drawn and displayed as measured by the system, the reported time here will be shifted to the system measured time.
It's also done by the Firebase SDK.
💚 How did you test it?
Unit tests
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps