Skip to content

Commit f598149

Browse files
Merge pull request #768 from DataDog/marcosaia/fix/sr-sample-rate-default-value
[FIX] Set SessionReplay sample rate default value to 100
2 parents 97f26f3 + 501475c commit f598149

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

packages/react-native-session-replay/src/SessionReplay.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ type InternalSessionReplayConfiguration = InternalBaseSessionReplayConfiguration
124124
const DEFAULTS: InternalSessionReplayConfiguration & {
125125
defaultPrivacyLevel: SessionReplayPrivacy;
126126
} = {
127-
replaySampleRate: 0,
127+
replaySampleRate: 100,
128128
defaultPrivacyLevel: SessionReplayPrivacy.MASK,
129129
customEndpoint: '',
130130
imagePrivacyLevel: ImagePrivacyLevel.MASK_ALL,

packages/react-native-session-replay/src/__tests__/SessionReplay.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ describe('SessionReplay', () => {
3232
SessionReplay.enable();
3333

3434
expect(NativeModules.DdSessionReplay.enable).toHaveBeenCalledWith(
35-
0,
35+
100,
3636
'',
3737
'MASK_ALL',
3838
'HIDE',

0 commit comments

Comments
 (0)