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
Copy file name to clipboardExpand all lines: platform-includes/configuration/auto-session-tracking/dart.flutter.mdx
+10-4Lines changed: 10 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
By default, the session is terminated once the application is in the background for more than `30 seconds`. You can change this default by setting the `autoSessionTrackingInterval` option to a `Duration` of your choosing.
@@ -16,16 +16,22 @@ Requires SDK version `9.0.0` or higher.
16
16
17
17
</Alert>
18
18
19
-
On web you're required to use the `SentryNavigatorObserver` since sessions are tied to navigation events.
19
+
On web it's required to use the `SentryNavigatorObserver` since sessions are tied to navigation events, and for your navigation routes to have names, for example using `RouteSettings`.
20
20
Read more [here](/platforms/dart/guides/flutter/integrations/routing-instrumentation/#1-add-sentrynavigationobserver) on how to add the `SentryNavigatorObserver` to your app.
21
-
If the `SentryNavigatorObserver` is not used in your app, sessions will not be tracked for web.
21
+
22
+
<Alert>
23
+
24
+
If you don't use the `SentryNavigatorObserver` then sessions will not be tracked in your application.
25
+
Once you have set up the `SentryNavigatorObserver` make sure every route has a unique name otherwise the release health could be inconsistent and inaccurate.
26
+
27
+
</Alert>
22
28
23
29
#### Disable Auto Session Tracking
24
30
25
31
If you'd like to opt out of capturing sessions, set the `enableAutoSessionTracking` option to `false`. If you disable this feature, release health will not be available.
0 commit comments