-
-
Notifications
You must be signed in to change notification settings - Fork 337
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
Use appLaunchedInForeground to determine invalid app start data on Android #4146
Merged
Conversation
This file contains 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
antonis
changed the title
Use appLaunchedInForeground to determinate invalid app start data on Android
Use appLaunchedInForeground to determine invalid app start data on Android
Oct 3, 2024
# Conflicts: # CHANGELOG.md
iOS (legacy) Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
5a22220+dirty | 1209.49 ms | 1220.94 ms | 11.45 ms |
f06c879+dirty | 1252.64 ms | 1259.66 ms | 7.02 ms |
484813b+dirty | 1222.45 ms | 1220.79 ms | -1.66 ms |
c398f67+dirty | 1219.67 ms | 1225.66 ms | 5.99 ms |
5bb8d5f+dirty | 1235.47 ms | 1237.39 ms | 1.92 ms |
d0bf494+dirty | 1289.40 ms | 1298.40 ms | 9.00 ms |
e73d82f+dirty | 1207.52 ms | 1216.73 ms | 9.21 ms |
e73f4ed+dirty | 1243.27 ms | 1244.52 ms | 1.25 ms |
baa882f+dirty | 1218.00 ms | 1227.04 ms | 9.04 ms |
457e29f+dirty | 1253.94 ms | 1269.18 ms | 15.24 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
5a22220+dirty | 2.36 MiB | 2.92 MiB | 570.21 KiB |
f06c879+dirty | 2.36 MiB | 2.88 MiB | 530.42 KiB |
484813b+dirty | 2.36 MiB | 3.08 MiB | 734.18 KiB |
c398f67+dirty | 2.36 MiB | 3.04 MiB | 696.27 KiB |
5bb8d5f+dirty | 2.36 MiB | 2.92 MiB | 570.22 KiB |
d0bf494+dirty | 2.36 MiB | 2.83 MiB | 481.15 KiB |
e73d82f+dirty | 2.36 MiB | 3.08 MiB | 734.23 KiB |
e73f4ed+dirty | 2.36 MiB | 2.82 MiB | 469.44 KiB |
baa882f+dirty | 2.36 MiB | 3.08 MiB | 731.91 KiB |
457e29f+dirty | 2.36 MiB | 2.87 MiB | 520.67 KiB |
iOS (new) Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
5a22220+dirty | 1246.18 ms | 1249.61 ms | 3.43 ms |
f06c879+dirty | 1285.14 ms | 1285.86 ms | 0.72 ms |
484813b+dirty | 1225.07 ms | 1221.00 ms | -4.07 ms |
c398f67+dirty | 1227.31 ms | 1230.00 ms | 2.69 ms |
5bb8d5f+dirty | 1215.04 ms | 1217.52 ms | 2.48 ms |
d0bf494+dirty | 1266.20 ms | 1267.52 ms | 1.32 ms |
e73d82f+dirty | 1231.20 ms | 1228.81 ms | -2.40 ms |
e73f4ed+dirty | 1282.90 ms | 1309.30 ms | 26.40 ms |
baa882f+dirty | 1235.48 ms | 1229.02 ms | -6.46 ms |
457e29f+dirty | 1256.71 ms | 1258.50 ms | 1.79 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
5a22220+dirty | 2.92 MiB | 3.48 MiB | 575.81 KiB |
f06c879+dirty | 2.92 MiB | 3.44 MiB | 533.24 KiB |
484813b+dirty | 2.92 MiB | 3.64 MiB | 740.56 KiB |
c398f67+dirty | 2.92 MiB | 3.60 MiB | 701.89 KiB |
5bb8d5f+dirty | 2.92 MiB | 3.48 MiB | 575.85 KiB |
d0bf494+dirty | 2.92 MiB | 3.40 MiB | 488.08 KiB |
e73d82f+dirty | 2.92 MiB | 3.64 MiB | 740.56 KiB |
e73f4ed+dirty | 2.92 MiB | 3.38 MiB | 475.71 KiB |
baa882f+dirty | 2.92 MiB | 3.64 MiB | 738.56 KiB |
457e29f+dirty | 2.92 MiB | 3.43 MiB | 524.75 KiB |
antonis
requested review from
krystofwoldrich and
lucas-zimerman
as code owners
October 4, 2024 08:57
Android (new) Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
9c48b2c+dirty | 270.82 ms | 321.12 ms | 50.30 ms |
0677344+dirty | 288.40 ms | 391.44 ms | 103.04 ms |
c398f67+dirty | 315.08 ms | 345.60 ms | 30.52 ms |
62a750b+dirty | 370.78 ms | 376.73 ms | 5.96 ms |
700cbf4+dirty | 411.71 ms | 485.52 ms | 73.81 ms |
e2b64fe+dirty | 258.82 ms | 304.26 ms | 45.44 ms |
5bb8d5f+dirty | 356.71 ms | 389.65 ms | 32.94 ms |
70e6261+dirty | 395.08 ms | 408.12 ms | 13.04 ms |
575f9da+dirty | 337.15 ms | 370.47 ms | 33.32 ms |
4a6664f+dirty | 357.02 ms | 394.91 ms | 37.89 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
9c48b2c+dirty | 7.15 MiB | 8.07 MiB | 947.16 KiB |
0677344+dirty | 7.15 MiB | 8.07 MiB | 949.80 KiB |
c398f67+dirty | 7.15 MiB | 8.21 MiB | 1.07 MiB |
62a750b+dirty | 7.15 MiB | 8.21 MiB | 1.06 MiB |
700cbf4+dirty | 7.15 MiB | 8.34 MiB | 1.19 MiB |
e2b64fe+dirty | 7.15 MiB | 8.07 MiB | 947.16 KiB |
5bb8d5f+dirty | 7.15 MiB | 8.21 MiB | 1.06 MiB |
70e6261+dirty | 7.15 MiB | 8.21 MiB | 1.07 MiB |
575f9da+dirty | 7.15 MiB | 8.10 MiB | 979.68 KiB |
4a6664f+dirty | 7.15 MiB | 8.22 MiB | 1.07 MiB |
Android (legacy) Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
86d6d2c+dirty | 332.90 ms | 352.45 ms | 19.55 ms |
e2b64fe | 316.88 ms | 330.23 ms | 13.35 ms |
b1e8712 | 462.11 ms | 465.71 ms | 3.60 ms |
abb7058 | 370.27 ms | 389.58 ms | 19.31 ms |
3ffcddd | 302.92 ms | 315.80 ms | 12.88 ms |
4cc5c27 | 460.04 ms | 496.32 ms | 36.28 ms |
76d1baf+dirty | 335.72 ms | 355.52 ms | 19.80 ms |
1d86dd6 | 405.14 ms | 411.06 ms | 5.92 ms |
d43a46b | 454.22 ms | 477.79 ms | 23.57 ms |
d0bf494+dirty | 375.37 ms | 395.14 ms | 19.77 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
86d6d2c+dirty | 17.73 MiB | 20.04 MiB | 2.31 MiB |
e2b64fe | 17.73 MiB | 19.80 MiB | 2.07 MiB |
b1e8712 | 17.73 MiB | 19.75 MiB | 2.02 MiB |
abb7058 | 17.73 MiB | 19.83 MiB | 2.10 MiB |
3ffcddd | 17.73 MiB | 19.75 MiB | 2.02 MiB |
4cc5c27 | 17.73 MiB | 19.95 MiB | 2.21 MiB |
76d1baf+dirty | 17.73 MiB | 20.04 MiB | 2.31 MiB |
1d86dd6 | 17.73 MiB | 19.86 MiB | 2.12 MiB |
d43a46b | 17.73 MiB | 20.06 MiB | 2.33 MiB |
d0bf494+dirty | 17.73 MiB | 19.75 MiB | 2.02 MiB |
Thank you, I'll review this in the afternoon. |
RNSentryAndroidTester/app/src/test/java/io/sentry/react/RNSentryModuleImplTest.kt
Outdated
Show resolved
Hide resolved
lucas-zimerman
approved these changes
Oct 7, 2024
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.
looks good to me, thank you for adding the Native tests!
Co-authored-by: LucasZF <[email protected]>
# Conflicts: # CHANGELOG.md
Thank you @lucas-zimerman for the review and thanks @antonis for the impl and the tests. I bit late but looks good! |
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.
📢 Type of change
📜 Description
Checks
appLaunchedInForeground
to determine invalid app start data on Android.Returns
null
in thefetchNativeAppStart
promise when the app has not started in foreground. The cases that anull
is returned are already handled in the code due to the iOS implementation that returnsnil
for invalid measurements.Note: There is already a check in place for launches longer than 1 min.
💡 Motivation and Context
Fixes #3995
💚 How did you test it?
Added tests for the
RNSentryModuleImpl.fetchNativeAppStart
function logic and relied on existing unit test:and the
sentry-java
tests.📝 Checklist
sendDefaultPII
is enabled🔮 Next steps