Skip to content

Commit 1e6beca

Browse files
committed
Increase idleTimeout to force additional react spans to be created for transactions
1 parent 4d70c72 commit 1e6beca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ Sentry.init({
4141
integrations: [
4242
new Sentry.ReactNativeTracing({
4343
routingInstrumentation: reactNavigationV5Instrumentation,
44-
tracingOrigins: ['localhost', /^\//, /^https:\/\//]
44+
tracingOrigins: ['localhost', /^\//, /^https:\/\//],
4545
// How to ignore transactions for the "Manual Tracker" screen
4646
// beforeNavigate: (context: Sentry.ReactNavigationTransactionContext) => {
4747
// if (context.data.route.name === 'ManualTracker') {
4848
// context.sampled = false;
4949
// }
5050
// return context;
5151
// },
52-
// idleTimeout: 5000
52+
idleTimeout: 30000 // extra long idleTimeout so we can force react.render spans to be created upon navigating away
5353
}),
5454
],
5555
tracesSampleRate: 1.0,

0 commit comments

Comments
 (0)