Skip to content

Commit 88a0b22

Browse files
authored
fix(react-router): Fix replay sample rate option names (#12206)
1 parent ddf922c commit 88a0b22

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

platform-includes/getting-started-config/javascript.react-router.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,11 @@ Sentry.init({
2727

2828
// Set `tracePropagationTargets` to declare which URL(s) should have trace propagation enabled
2929
tracePropagationTargets: [/^\//, /^https:\/\/yourserver\.io\/api/],
30-
30+
3131
// Capture Replay for 10% of all sessions,
3232
// plus 100% of sessions with an error
33-
sessionReplaySampleRate: 1.0,
34-
sessionReplayRecordingRate: 1.0,
33+
replaysSessionSampleRate: 0.1,
34+
replaysOnErrorSampleRate: 1.0,
3535
});
3636

3737
startTransition(() => {

0 commit comments

Comments
 (0)