-
-
Notifications
You must be signed in to change notification settings - Fork 449
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
feat: Added enableTraceIdGeneration
option
#4188
Conversation
|
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
b68b2b0 | 337.22 ms | 428.22 ms | 91.00 ms |
b35d87a | 404.45 ms | 405.02 ms | 0.57 ms |
f864475 | 415.13 ms | 478.10 ms | 62.97 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
b68b2b0 | 1.58 MiB | 2.21 MiB | 641.57 KiB |
b35d87a | 1.58 MiB | 2.21 MiB | 641.30 KiB |
f864475 | 1.58 MiB | 2.21 MiB | 641.28 KiB |
fc43927
to
d0f9805
Compare
e8ba360
to
ac7be23
Compare
b4f9292
to
46039a5
Compare
sentry-android-core/src/main/java/io/sentry/android/core/ManifestMetadataReader.java
Outdated
Show resolved
Hide resolved
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.
LGTM, I only have one concern about hybrid-mixed apps (e.g. UaaL or a RN bundle for some screens within a regular android app): this would disable it for the entire run of a process, so it's either-or and not that you can have mixed traces, but I'm not sure if we should think/support this already now.
Co-authored-by: Roman Zavarnitsyn <[email protected]>
The support for hybrid-mixed apps is not clearly defined at the moment. But a simple answer is the mixed app initializes native (Android) manually thus the user should enable |
The main use-case is Hybrid SDKs controlling the generation. And it's |
📜 Description
This PR adds a
enableTraceIdGeneration
option to theAndroidOptions
. This option is then used in theActiviytLifeCycleIntegration
and theSentryGestureListener
to control whether the SDK generates a new trace.💡 Motivation and Context
The idea is that Hybrid SDK should control trace generation. For that they need a way to disable the automatic trace creation in the Java SDK. This is so we can ensure that a single trace ID manages the entire lifecycle of a game/app, linking errors and events top-down.
💚 How did you test it?
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps