Repository navigation
feat(cli): Ask about Session Replay in the Android wizard - #2832
Merged
Merged
Conversation
`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>
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
antonis
approved these changes
Dec 3, 2026
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
sentry wizard androidnever set up Session Replay, while the React Native and Flutter wizards ask about it. The--replayflag already existed but the Android flow ignored it.Question (
android-wizard.ts): after Tracing, Logs and Profiling, the wizard asksaskFlagQuestion("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, likereact-native-wizard.tsdoes, and it sets theenable-session-replaytag.Manifest (
templates.ts):ManifestOptionsgetsenableReplay. When it's true, the snippet adds a comment and these lines between the profiling and Logs lines:These are the
REPLAYS_SESSION_SAMPLE_RATEandREPLAYS_ERROR_SAMPLE_RATEkeys in sentry-java'sManifestMetadataReader. 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]