Skip to content

Commit 592f513

Browse files
fix session sample rate on Android
1 parent 5fd158e commit 592f513

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@
22

33
## Unreleased
44

5+
### Fixes
6+
7+
- Pass `replaysSessionSampleRate` option to Android ([#3714](https://github.com/getsentry/sentry-react-native/pull/3714))
8+
59
Access to Mobile Replay is limited to early access orgs on Sentry. If you're interested, [sign up for the waitlist](https://sentry.io/lp/mobile-replay-beta/)
610

711
## 5.22.1

android/src/main/java/io/sentry/react/RNSentryModuleImpl.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ private SentryReplayOptions getReplayOptions(@NotNull ReadableMap rnOptions) {
309309
return androidReplayOptions;
310310
}
311311

312-
androidReplayOptions.setErrorSampleRate(rnExperimentsOptions.hasKey("replaysSessionSampleRate")
312+
androidReplayOptions.setSessionSampleRate(rnExperimentsOptions.hasKey("replaysSessionSampleRate")
313313
? rnExperimentsOptions.getDouble("replaysSessionSampleRate") : null);
314314
androidReplayOptions.setErrorSampleRate(rnExperimentsOptions.hasKey("replaysOnErrorSampleRate")
315315
? rnExperimentsOptions.getDouble("replaysOnErrorSampleRate") : null);

0 commit comments

Comments
 (0)