-
-
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
Add deadline timeout for automatic transactions #2865
Add deadline timeout for automatic transactions #2865
Conversation
|
Performance metrics 🚀
|
Revision | Plain | With Sentry | Diff |
---|---|---|---|
8bbad89 | 294.88 ms | 322.45 ms | 27.57 ms |
68087ab | 278.39 ms | 323.38 ms | 44.99 ms |
7adb6ab | 266.60 ms | 361.14 ms | 94.55 ms |
f2cbdf1 | 309.78 ms | 356.22 ms | 46.44 ms |
c5d4e44 | 322.10 ms | 375.86 ms | 53.76 ms |
App size
Revision | Plain | With Sentry | Diff |
---|---|---|---|
8bbad89 | 1.72 MiB | 2.29 MiB | 576.09 KiB |
68087ab | 1.72 MiB | 2.29 MiB | 575.53 KiB |
7adb6ab | 1.72 MiB | 2.29 MiB | 575.53 KiB |
f2cbdf1 | 1.72 MiB | 2.29 MiB | 576.04 KiB |
c5d4e44 | 1.72 MiB | 2.29 MiB | 576.09 KiB |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## feat/7.0.0 #2865 +/- ##
================================================
+ Coverage 81.26% 81.45% +0.19%
- Complexity 4560 4660 +100
================================================
Files 350 354 +4
Lines 16866 17153 +287
Branches 2272 2320 +48
================================================
+ Hits 13706 13972 +266
- Misses 2219 2231 +12
- Partials 941 950 +9
☔ View full report in Codecov by Sentry. |
sentry-android-core/src/main/java/io/sentry/android/core/ActivityLifecycleIntegration.java
Outdated
Show resolved
Hide resolved
Are we going to add timeout for all of auto transactions? |
Ah I missed For |
The backend request transactions should in theory always be finished once the request finishes or is cancelled. Having a deadline makes sense for the annotation based For the OTEL Since I'm in the middle of moving our Spring Boot code into a new module in #2880 maybe it makes more sense to split out the backend part here and do it in a follow up PR. |
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!
📜 Description
Adds a timeout of 30s to automatic UI transactions.
Inspired by cocoa: https://github.com/getsentry/sentry-cocoa/blob/a176fc448cf5f3ea7b188449b8170b14ce6805cf/Sources/Sentry/SentryTracer.m#L248-L266
💡 Motivation and Context
Fixes #2514
💚 How did you test it?
📝 Checklist
sendDefaultPII
is enabled.🔮 Next steps