Skip to content

Commit

Permalink
Merge pull request #768 from DataDog/marcosaia/fix/sr-sample-rate-def…
Browse files Browse the repository at this point in the history
…ault-value

[FIX] Set SessionReplay sample rate default value to 100
  • Loading branch information
marco-saia-datadog authored Jan 9, 2025
2 parents 97f26f3 + 501475c commit f598149
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/react-native-session-replay/src/SessionReplay.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ type InternalSessionReplayConfiguration = InternalBaseSessionReplayConfiguration
const DEFAULTS: InternalSessionReplayConfiguration & {
defaultPrivacyLevel: SessionReplayPrivacy;
} = {
replaySampleRate: 0,
replaySampleRate: 100,
defaultPrivacyLevel: SessionReplayPrivacy.MASK,
customEndpoint: '',
imagePrivacyLevel: ImagePrivacyLevel.MASK_ALL,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ describe('SessionReplay', () => {
SessionReplay.enable();

expect(NativeModules.DdSessionReplay.enable).toHaveBeenCalledWith(
0,
100,
'',
'MASK_ALL',
'HIDE',
Expand Down

0 comments on commit f598149

Please sign in to comment.