Skip to content

Commit

Permalink
chore(android): Change errorSampleRate to onErrorSampleRate in onboar…
Browse files Browse the repository at this point in the history
…ding (#79279)

Closes #77650
  • Loading branch information
romtsn authored Oct 17, 2024
1 parent c122518 commit b583563
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions static/app/gettingStartedDocs/android/android.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -104,12 +104,12 @@ SentryAndroid.init(context) { options ->
options.isDebug = true
// Currently under experimental options:
options.experimental.sessionReplay.errorSampleRate = 1.0
options.experimental.sessionReplay.onErrorSampleRate = 1.0
options.experimental.sessionReplay.sessionSampleRate = 1.0
}`;

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

const getReplayConfigurationSnippet = () => `
Expand Down Expand Up @@ -434,7 +434,7 @@ const replayOnboarding: OnboardingConfig<PlatformOptions> = {
],
verify: getReplayVerifyStep({
replayOnErrorSampleRateName:
'options\u200b.experimental\u200b.sessionReplay\u200b.errorSampleRate',
'options\u200b.experimental\u200b.sessionReplay\u200b.onErrorSampleRate',
replaySessionSampleRateName:
'options\u200b.experimental\u200b.sessionReplay\u200b.sessionSampleRate',
}),
Expand Down

0 comments on commit b583563

Please sign in to comment.