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: docs/platforms/flutter/session-replay/index.mdx
+6-9Lines changed: 6 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,22 +44,19 @@ await SentryFlutter.init(
44
44
45
45
## Verify
46
46
47
-
While you're testing, we recommend that you set <PlatformIdentifiername="replays-session-sample-rate" /> to `1.0`. This ensures that every user session will be sent to Sentry.
47
+
While you're testing, we recommend that you set `sessionSampleRate` to `1.0`. This ensures that every user session will be sent to Sentry.
48
48
49
-
Once testing is complete, **we recommend lowering this value in production**. We still recommend keeping <PlatformIdentifiername="replays-on-error-sample-rate" /> set to `1.0`.
49
+
Once testing is complete, **we recommend lowering this value in production**. We still recommend keeping `onErrorSampleRate` set to `1.0`.
50
50
51
51
## Sampling
52
52
53
53
Sampling allows you to control how much of your website's traffic will result in a Session Replay. There are two sample rates you can adjust to get the replays relevant to you:
54
54
55
-
1. <PlatformIdentifiername="replays-session-sample-rate" /> - The sample rate for
56
-
replays that begin recording immediately and last the entirety of a user's session.
57
-
2. <PlatformIdentifiername="replays-on-error-sample-rate" /> - The sample rate for
58
-
replays that are recorded when an error happens. This type of replay will record
59
-
up to a minute of events prior to the error and continue recording until the session
60
-
ends.
55
+
1.`sessionSampleRate` - The sample rate for replays that begin recording immediately and last the entirety of a user's session.
56
+
2.`onErrorSampleRate` - The sample rate for replays that are recorded when an error happens. This type of replay will record
57
+
up to a minute of events prior to the error and continue recording until the session ends.
61
58
62
-
Sampling starts as soon as a session begins. The <PlatformIdentifiername="replays-session-sample-rate" /> is then evaluated. If the session is sampled, replay recording will start immediately. If not, <PlatformIdentifiername="replays-on-error-sample-rate" /> will be evaluated. If the session is sampled at this point, the replay will be buffered and will only be uploaded to Sentry if an error occurs.
59
+
Sampling starts as soon as a session begins. The `sessionSampleRate`is then evaluated. If the session is sampled, replay recording will start immediately. If not, `onErrorSampleRate` will be evaluated. If the session is sampled at this point, the replay will be buffered and will only be uploaded to Sentry if an error occurs.
0 commit comments