-
-
Notifications
You must be signed in to change notification settings - Fork 441
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
Kw/app start span for hybrid SDKs #3454
Merged
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
krystofwoldrich
requested review from
adinauer,
romtsn,
stefanosiano and
markushi
as code owners
June 3, 2024 07:40
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
d6d2b2e | 392.55 ms | 467.50 ms | 74.95 ms |
c7e2fbc | 393.98 ms | 478.24 ms | 84.27 ms |
4e260b3 | 388.40 ms | 468.98 ms | 80.58 ms |
28c9a83 | 366.20 ms | 433.88 ms | 67.67 ms |
baaf637 | 418.39 ms | 496.86 ms | 78.47 ms |
283d83e | 416.81 ms | 497.22 ms | 80.41 ms |
283d83e | 348.44 ms | 392.06 ms | 43.62 ms |
0bf143e | 368.35 ms | 437.47 ms | 69.12 ms |
86f0096 | 368.63 ms | 446.92 ms | 78.29 ms |
619c9b9 | 428.23 ms | 514.66 ms | 86.43 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
d6d2b2e | 1.72 MiB | 2.27 MiB | 555.05 KiB |
c7e2fbc | 1.72 MiB | 2.29 MiB | 576.40 KiB |
4e260b3 | 1.72 MiB | 2.27 MiB | 554.95 KiB |
28c9a83 | 1.70 MiB | 2.28 MiB | 592.00 KiB |
baaf637 | 1.72 MiB | 2.27 MiB | 558.42 KiB |
283d83e | 1.72 MiB | 2.29 MiB | 577.69 KiB |
283d83e | 1.72 MiB | 2.29 MiB | 577.69 KiB |
0bf143e | 1.72 MiB | 2.29 MiB | 576.50 KiB |
86f0096 | 1.72 MiB | 2.29 MiB | 576.50 KiB |
619c9b9 | 1.70 MiB | 2.28 MiB | 592.12 KiB |
Previous results on branch: kw/appStartSpanForHybridSDKs
Startup times
Revision | Plain | With Sentry | Diff |
---|---|---|---|
27c9de3 | 368.88 ms | 473.28 ms | 104.40 ms |
c9f1bb9 | 417.57 ms | 476.24 ms | 58.67 ms |
d52f826 | 430.57 ms | 475.76 ms | 45.19 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
27c9de3 | 1.70 MiB | 2.28 MiB | 592.12 KiB |
c9f1bb9 | 1.70 MiB | 2.28 MiB | 592.12 KiB |
d52f826 | 1.70 MiB | 2.28 MiB | 592.12 KiB |
krystofwoldrich
changed the title
Kw/app start span for hybrid sd ks
Kw/app start span for hybrid SDKs
Jun 3, 2024
…artSpanForHybridSDKs
@buenaflor This the same app start helper as for iOS. Again, please review the code from Flutter point of view. |
markushi
approved these changes
Jun 4, 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.
Nice one, looks good! Please have a look at my comments, especially the one about accepting only valid timespans.
sentry-android-core/src/main/java/io/sentry/android/core/InternalSentrySdk.java
Outdated
Show resolved
Hide resolved
sentry-android-core/src/main/java/io/sentry/android/core/InternalSentrySdk.java
Outdated
Show resolved
Hide resolved
sentry-android-core/src/test/java/io/sentry/android/core/InternalSentrySdkTest.kt
Show resolved
Hide resolved
works on flutter 👍 looks good to me |
6 tasks
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
This PR adds a new method to the HybridSDKs interface which returns serializable app start data including span structures.
This can be used in Flutter (replacing current custom impl), React Native and other hybrid SDKs like Unity, Capacitor and others.
💡 Motivation and Context
💚 How did you test it?
unit tests
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps
#skip-changelog