Skip to content

Commit 7c98b3e

Browse files
romtsncmanallen
authored andcommitted
chore(android): Change errorSampleRate to onErrorSampleRate in onboarding (#79279)
Closes #77650
1 parent d9cf937 commit 7c98b3e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

static/app/gettingStartedDocs/android/android.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,12 +104,12 @@ SentryAndroid.init(context) { options ->
104104
options.isDebug = true
105105
106106
// Currently under experimental options:
107-
options.experimental.sessionReplay.errorSampleRate = 1.0
107+
options.experimental.sessionReplay.onErrorSampleRate = 1.0
108108
options.experimental.sessionReplay.sessionSampleRate = 1.0
109109
}`;
110110

111111
const getReplaySetupSnippetXml = () => `
112-
<meta-data android:name="io.sentry.session-replay.error-sample-rate" android:value="1.0" />
112+
<meta-data android:name="io.sentry.session-replay.on-error-sample-rate" android:value="1.0" />
113113
<meta-data android:name="io.sentry.session-replay.session-sample-rate" android:value="1.0" />`;
114114

115115
const getReplayConfigurationSnippet = () => `
@@ -434,7 +434,7 @@ const replayOnboarding: OnboardingConfig<PlatformOptions> = {
434434
],
435435
verify: getReplayVerifyStep({
436436
replayOnErrorSampleRateName:
437-
'options\u200b.experimental\u200b.sessionReplay\u200b.errorSampleRate',
437+
'options\u200b.experimental\u200b.sessionReplay\u200b.onErrorSampleRate',
438438
replaySessionSampleRateName:
439439
'options\u200b.experimental\u200b.sessionReplay\u200b.sessionSampleRate',
440440
}),

0 commit comments

Comments
 (0)