question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

App start tracking is replaced by navigation tracking (Route Change)

See original GitHub issue

Environment

How do you use Sentry? self-hosted(Sentry 20.11.1)

Which SDK and version? “@sentry/react-native”: “3.2.6”

Steps to Reproduce

Sentry setup:


    const routingInstrumentation = new Sentry.ReactNavigationInstrumentation({
      routeChangeTimeoutMs: __DEV__ ? 50000 : 10000,
    });

    Sentry.init({
      dsn: dsn,
      debug: __DEV__,
      environment: environment,
      release: releaseName,
      dist: getBuildNumber(),
      tracesSampler: samplingContext => {
        return 1;
      },
      enableAutoSessionTracking: true,
      integrations: [
        new Sentry.ReactNativeTracing({
          routingInstrumentation: routingInstrumentation,
          }),
      ],
    });

    export default Sentry.wrap(App);

Expected Result

Still use App Start as app start change but not Route Change

Actual Result

App Start transaction replaced(or Rename?) to Route Change.

When disable routingInstrumentation : image

When enable routingInstrumentation: image

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
bruno-garciacommented, Jan 5, 2022

Without the routing integration all you get is that app start transaction. With routing enable you get a transaction for each screen. The app start one is just replaces by the routing and that’s by design

0reactions
marandanetocommented, Feb 7, 2022

Closing the issue as a part of large repository cleanup, due to it being inactive and/or outdated. Please do not hesitate to ping me if it is still relevant, and I will happily reopen and work on it. Cheers!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Screen tracking for analytics | React Navigation
To track the currently active screen, we need to: Add a callback to get notified of state changes; Get the root navigator state...
Read more >
Changing state on route change Next.js - Stack Overflow
So the app starts off with navActive state of false, clicking the HeaderToggleBar element opens and closes the nav. But I need to...
Read more >
Route progress | Navigation SDK | Android - Mapbox docs
The Mapbox Navigation SDK's model for tracking route progress has three pieces with different levels of granularity: the route, the leg, and the...
Read more >
My Track - Apps on Google Play
My Track is a small and powerful application to keep track of your route while you go around. The quite complex functionality hides...
Read more >
How location tracking works with your Google Fit data - Android
Step 2: Choose location tracking options · On your device, open Settings . · Tap Apps & notifications and then Google Fit ·...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found