From 992c6c910a3e7fa4cf5d0710b315286fc3cfe85a Mon Sep 17 00:00:00 2001 From: louiszawadzki Date: Wed, 10 Jan 2024 15:56:25 +0100 Subject: [PATCH] Set default session replay sample rate to 0 --- packages/react-native-session-replay/src/SessionReplay.ts | 2 +- .../src/__tests__/SessionReplay.test.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native-session-replay/src/SessionReplay.ts b/packages/react-native-session-replay/src/SessionReplay.ts index 7eed3ea00..0c1da957d 100644 --- a/packages/react-native-session-replay/src/SessionReplay.ts +++ b/packages/react-native-session-replay/src/SessionReplay.ts @@ -33,7 +33,7 @@ export interface SessionReplayConfiguration { } const DEFAULTS = { - replaySampleRate: 20, + replaySampleRate: 0, defaultPrivacyLevel: SessionReplayPrivacy.MASK }; diff --git a/packages/react-native-session-replay/src/__tests__/SessionReplay.test.ts b/packages/react-native-session-replay/src/__tests__/SessionReplay.test.ts index ca4a32e8a..d2001c26e 100644 --- a/packages/react-native-session-replay/src/__tests__/SessionReplay.test.ts +++ b/packages/react-native-session-replay/src/__tests__/SessionReplay.test.ts @@ -18,7 +18,7 @@ describe('SessionReplay', () => { SessionReplay.enable(); expect(NativeModules.DdSessionReplay.enable).toHaveBeenCalledWith( - 20, + 0, 'MASK' ); });