You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 084c3cb
Browse filesBrowse the repository at this point in the historyBrowse files
fix(sample): Drop Nav3 Activity ui.load transactions when the toggle is off (#6401)
The sample cancelled the Activity's ui.load transaction through the scope. When another
transaction was already bound, such as the previous Activity's nav transaction, the SDK didn't
bind ui.load, so the cancel missed and the transaction was still sent, often waiting the full
deadline with the Activity's spans.
Keep cancelling a bound ui.load transaction so it doesn't block the first nav transaction, and
also drop Nav3 sample Activities' ui.load transactions in an event processor when the Activity
was created with the toggle off.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android/navigation/nav3/Nav3Activity.kt
+4-5Lines changed: 4 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -92,11 +92,10 @@ class Nav3Activity : ComponentActivity() {
Copy file name to clipboardExpand all lines: sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android/navigation/nav3/Nav3MultiActivity.kt
+2-6Lines changed: 2 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -89,9 +89,7 @@ class Nav3ProductsActivity : ComponentActivity() {
89
89
super.onCreate(savedInstanceState)
90
90
val configuration = (intent.extras ?:Bundle()).nav3SampleConfiguration()
91
91
NavigationTransactionHistory.install()
92
-
if (!configuration.enableActivityUiLoadTransaction) {
Copy file name to clipboardExpand all lines: sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android/navigation/nav3/Nav3MultiFragment.kt
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -76,9 +76,7 @@ class Nav3FragmentsActivity : FragmentActivity() {
76
76
overridefunonCreate(savedInstanceState:Bundle?) {
77
77
super.onCreate(savedInstanceState)
78
78
NavigationTransactionHistory.install()
79
-
if (!configuration.enableActivityUiLoadTransaction) {
Copy file name to clipboardExpand all lines: sentry-samples/sentry-samples-android/src/main/java/io/sentry/samples/android/navigation/nav3/Nav3SampleTracing.kt
0 commit comments