Repository navigation
feat(cli): Ask about Profiling and add --feedback in the React Native wizard - #2831
Merged
Merged
Conversation
… wizard The React Native wizard now asks the Profiling question right after Tracing, as the iOS and Android wizards do. It is asked only when Tracing is yes; otherwise the wizard logs that Profiling needs Tracing. A yes adds the stable `profilesSampleRate: 1.0` to `Sentry.init` and sets the `enable-profiling` tag. The User Feedback Widget question was a plain confirm with no flag, so a run without a terminal stopped there with exit code 1. It now has a `feedback` entry in WIZARD_ANSWER_FLAGS, so `--feedback`/`--no-feedback` answer it. With neither flag it is asked as before, with Yes as the default. The Sentry.init snippet functions take one options object instead of positional flags, which max-params would otherwise reject. 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
marked this pull request as ready for review
December 3, 2026 09:59
antonis
approved these changes
Dec 3, 2026
14 of 16 tasks
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.
Two changes to
sentry wizard reactNative, to match the iOS (#2800) and Android (#2808) wizards.Profiling question. Right after Tracing, the wizard asks the Profiling question (
enabledHint: "recommended"), only when Tracing is yes. When Tracing is no, it logsProfiling: no (it only runs during traces, so it needs Tracing), as the other two wizards do. A yes adds this toSentry.init, aftertracesSampleRate:It uses the stable
profilesSampleRateoption, not_experiments.profilingOptions, whichoptions.tsin getsentry/sentry-react-native marks@experimental. The wizard sets anenable-profilingtag.enableProfilinggoes throughaddSentryInitand the snippet functions, as #2673 did forenableTracing. A sixth positional flag would breakmax-params, so the snippet functions now take oneSentryInitOptionsobject.--feedback/--no-feedback. The User Feedback Widget question was a plainclack.confirmwith no flag, so a run without a terminal stopped there with exit code 1 even when flags answered every other question. It now has afeedbackentry inWIZARD_ANSWER_FLAGS(only: "reactNative") and is asked throughaskFlagQuestion. The docs link moved from the question into the Yes hint. With neither flag, it is asked as before, with Yes as the default.--helpand the generated skill reference list the new flag.With no flags, the question order is now Tracing, Profiling, Logs, Session Replay, User Feedback Widget.
Open decision: keep this a draft; marking it ready for review is a maintainer call.
via Antonis Lilis.
--
View Session [Sentry]