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
ref(replay): Rename replaysSampleRate to replaysSessionSampleRate (#6422)
We wanted this config option to be a bit more specific in that it should be the sample rate for "session" replays (vs. on error samples). The previous name could be mistaken as a sample rate that affects both types of replays.
Copy file name to clipboardExpand all lines: packages/replay/README.md
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,7 @@ Sentry.init({
48
48
49
49
// This sets the sample rate to be 10%. You may want this to be 100% while
50
50
// in development and sample at a lower rate in production
51
-
replaysSampleRate:0.1,
51
+
replaysSessionSampleRate:0.1,
52
52
53
53
// If the entire session is not sampled, use the below sample rate to sample
54
54
// sessions when an error occurs.
@@ -101,10 +101,10 @@ Alternatively, rather than recording an entire session, you can capture a replay
101
101
102
102
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 more relevant to your interests:
103
103
104
-
-`replaysSampleRate` - The sample rate for replays that begin recording immediately and last the entirety of the user's session.
104
+
-`replaysSessionSampleRate` - The sample rate for replays that begin recording immediately and last the entirety of the user's session.
105
105
-`replaysOnErrorSampleRate` - The sample rate for replays that are recorded when an error happens. This type of replay will record up to a minute of events prior to the error and continue recording until the session ends.
106
106
107
-
Sampling occurs when the session is first started. `replaysSampleRate` is evaluated first. If it is sampled, then the replay recording begins. Otherwise, `replaysOnErrorSampleRate` is evaluated and if it is sampled, the integration will begin buffering the replay and will only upload a replay to Sentry when an error occurs. The remainder of the replay will behave similarly to a whole-session replay.
107
+
Sampling occurs when the session is first started. `replaysSessionSampleRate` is evaluated first. If it is sampled, then the replay recording begins. Otherwise, `replaysOnErrorSampleRate` is evaluated and if it is sampled, the integration will begin buffering the replay and will only upload a replay to Sentry when an error occurs. The remainder of the replay will behave similarly to a whole-session replay.
108
108
109
109
110
110
## Configuration
@@ -116,7 +116,7 @@ The following options can be configured on the root level of your browser-based
|replaysSampleRate| number |`0.1`| The sample rate for replays that begin recording immediately and last the entirety of the user's session. 1.0 will collect all replays, 0 will collect no replays. |
119
+
|replaysSessionSampleRate| number |`0.1`| The sample rate for replays that begin recording immediately and last the entirety of the user's session. 1.0 will collect all replays, 0 will collect no replays. |
120
120
| replaysOnErrorSampleRate | number | `1.0` |The sample rate for replays that are recorded when an error happens. This type of replay will record up to a minute of events prior to the error and continue recording until the session ends. 1.0 capturing all sessions with an error, and 0 capturing none.
0 commit comments