Skip to content

feat(cli): Ask about Session Replay in the Android wizard - #2832

Merged
antonis merged 1 commit into
mainfrom
feat/android-wizard-session-replay
Dec 3, 2026
Merged

antonis merged 1 commit into
mainfrom
feat/android-wizard-session-replay

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

sentry wizard android never set up Session Replay, while the React Native and Flutter wizards ask about it. The --replay flag already existed but the Android flow ignored it.

Question (android-wizard.ts): after Tracing, Logs and Profiling, the wizard asks askFlagQuestion("replay", …) with the Android Session Replay docs as the hint. Replay doesn't need tracing, so it's asked whatever the Tracing answer was. On yes it logs the sample rates and that text and images are masked by default, like react-native-wizard.ts does, and it sets the enable-session-replay tag.

Manifest (templates.ts): ManifestOptions gets enableReplay. When it's true, the snippet adds a comment and these lines between the profiling and Logs lines:

<meta-data android:name="io.sentry.session-replay.session-sample-rate" android:value="0.1" />
<meta-data android:name="io.sentry.session-replay.on-error-sample-rate" android:value="1.0" />

These are the REPLAYS_SESSION_SAMPLE_RATE and REPLAYS_ERROR_SAMPLE_RATE keys in sentry-java's ManifestMetadataReader. The rates match the React Native and Flutter wizards. The other lines and their order stay the same, and the snippet has no runs of blank lines with or without tracing.

Open decision: this stays a draft until @antonis decides to mark it ready.

via Antonis Lilis.

--

View Session [Sentry]

`sentry wizard android` never set up Session Replay, unlike the React
Native and Flutter wizards. It now asks the Replay question after
Tracing, Logs and Profiling, whatever the Tracing answer, since Replay
doesn't need tracing. A yes writes
io.sentry.session-replay.session-sample-rate (0.1) and
io.sentry.session-replay.on-error-sample-rate (1.0) to the manifest,
the keys sentry-java's ManifestMetadataReader reads, and logs the rates
and that text and images are masked by default.

Co-Authored-By: Antonis Lilis <antonis.lilis@sentry.io>
@vercel

vercel Bot commented Dec 3, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Dec 3, 2026 9:44am UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Dec 3, 2026 9:44am UTC

Request Review

@antonis
antonis marked this pull request as ready for review December 3, 2026 10:00
@antonis
antonis added this pull request to the merge queue Dec 3, 2026
@github-actions github-actions Bot added the risk: medium PR risk score: medium label Dec 3, 2026
Merged via the queue into main with commit 7cc7ed0 Dec 3, 2026
33 checks passed
@antonis
antonis deleted the feat/android-wizard-session-replay branch December 3, 2026 10:03

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cli — 05d99665 Deployed Dec 3, 2026 by vercel[bot]
Preview – sentry-local — 05d99665 Deployed Dec 3, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: medium PR risk score: medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant