feat: Send SDK Integration List, add missing packages - #2179
Conversation
|
# Conflicts: # sentry-android-core/src/main/java/io/sentry/android/core/ActivityLifecycleIntegration.java # sentry-android-core/src/main/java/io/sentry/android/core/AppLifecycleIntegration.java # sentry/src/main/java/io/sentry/UncaughtExceptionHandlerIntegration.java
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 |
| fe30606 | 310.82 ms | 335.36 ms | 24.55 ms |
| 14c083a | 350.82 ms | 388.86 ms | 38.04 ms |
| 4b32504 | 357.14 ms | 404.04 ms | 46.90 ms |
| c1399c1 | 345.06 ms | 385.49 ms | 40.43 ms |
| f6a135d | 263.96 ms | 383.59 ms | 119.63 ms |
| 5fa24ec | 326.29 ms | 384.53 ms | 58.24 ms |
| efa7b3d | 330.06 ms | 370.14 ms | 40.08 ms |
| efa7b3d | 335.38 ms | 384.85 ms | 49.48 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 |
| fe30606 | 1.73 MiB | 2.34 MiB | 623.74 KiB |
| 14c083a | 1.73 MiB | 2.33 MiB | 620.61 KiB |
| 4b32504 | 1.73 MiB | 2.34 MiB | 623.74 KiB |
| c1399c1 | 1.73 MiB | 2.33 MiB | 620.61 KiB |
| f6a135d | 1.73 MiB | 2.33 MiB | 623.10 KiB |
| 5fa24ec | 1.73 MiB | 2.33 MiB | 620.61 KiB |
| efa7b3d | 1.73 MiB | 2.34 MiB | 625.56 KiB |
| efa7b3d | 1.73 MiB | 2.34 MiB | 625.56 KiB |
Previous results on branch: feat/integrations-in-events
Startup times
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 607bde5 | 312.84 ms | 341.02 ms | 28.18 ms |
| f2ac750 | 331.21 ms | 382.12 ms | 50.92 ms |
| 47b5673 | 317.63 ms | 363.37 ms | 45.74 ms |
| 13749c3 | 335.81 ms | 367.06 ms | 31.25 ms |
| 3556d6d | 273.42 ms | 318.63 ms | 45.22 ms |
| 20115be | 339.14 ms | 381.59 ms | 42.44 ms |
| 9668485 | 347.31 ms | 370.49 ms | 23.18 ms |
| 8789ba4 | 355.11 ms | 394.53 ms | 39.42 ms |
| 6b688da | 374.96 ms | 422.16 ms | 47.20 ms |
| d1e381e | 300.51 ms | 369.57 ms | 69.06 ms |
App size
| Revision | Plain | With Sentry | Diff |
|---|---|---|---|
| 607bde5 | 1.73 MiB | 2.33 MiB | 621.17 KiB |
| f2ac750 | 1.73 MiB | 2.34 MiB | 626.06 KiB |
| 47b5673 | 1.73 MiB | 2.34 MiB | 626.08 KiB |
| 13749c3 | 1.73 MiB | 2.33 MiB | 621.17 KiB |
| 3556d6d | 1.73 MiB | 2.33 MiB | 614.83 KiB |
| 20115be | 1.73 MiB | 2.34 MiB | 626.01 KiB |
| 9668485 | 1.73 MiB | 2.34 MiB | 626.03 KiB |
| 8789ba4 | 1.73 MiB | 2.34 MiB | 626.08 KiB |
| 6b688da | 1.73 MiB | 2.34 MiB | 626.08 KiB |
| d1e381e | 1.73 MiB | 2.34 MiB | 624.19 KiB |
…ntry-java into feat/integrations-in-events
# Conflicts: # sentry-android-core/src/main/java/io/sentry/android/core/AppLifecycleIntegration.java
|
@lbloder can I also ask you to add the missing integrations to packages (
Don't know about |
# Conflicts: # sentry-android-core/src/main/java/io/sentry/android/core/AnrIntegration.java
…ntry-java into feat/integrations-in-events
adinauer
left a comment
There was a problem hiding this comment.
We need to find a different way of handling deserialization. Clearing all packages / integrations would lead to bad data.
|
|
||
| - Add time-to-full-display span to Activity auto-instrumentation ([#2432](https://github.com/getsentry/sentry-java/pull/2432)) | ||
| - Add `main` flag to threads and `in_foreground` flag for app contexts ([#2516](https://github.com/getsentry/sentry-java/pull/2516)) | ||
| - Add integrations to integration list ([#2179](https://github.com/getsentry/sentry-java/pull/2179)) |
There was a problem hiding this comment.
Maybe put this under Fixes and call it:
Integrations and packages in use are now reported more consistently
wdyt?
| public final class ComposeGestureTargetLocator implements GestureTargetLocator { | ||
|
|
||
| public ComposeGestureTargetLocator() { | ||
| SentryIntegrationPackageStorage.getInstance().addIntegration("ComposeHelper"); |
There was a problem hiding this comment.
| SentryIntegrationPackageStorage.getInstance().addIntegration("ComposeHelper"); | |
| SentryIntegrationPackageStorage.getInstance().addIntegration("ComposeUserInteraction"); | |
| SentryIntegrationPackageStorage.getInstance().addPackage("maven:io.sentry:sentry-compose", BuildConfig.VERSION_NAME) |
since it's embedded in sentry-compose
|
One more ask - could you please add |
…ge for integrationLIst getter
… getter add getter for set
…res/ComposeGestureTargetLocator.java Co-authored-by: Roman Zavarnitsyn <rom4ek93@gmail.com>
adinauer
left a comment
There was a problem hiding this comment.
Just finished this off by fixing compile, adding BuildConfig to compose-helper and adding a test to ensure storage doesn't affect deserialized SdkVersion instances.
📜 Description
registermethod which would return true/false depending on whether the integration is enabled or not, then we could add all of them on the registring site. But this would mean breaking the public API so I opted out from thatoutdated
You can see the event with integrations here https://sentry.io/organizations/sentry-sdks/issues/3402041535/events/e085890223004873b274c7bb6c6d1c8f/json/
💡 Motivation and Context
Closes #1885
🔮 Next steps