Repository navigation
feat(cli): Ask about tracing and profiling in the Android wizard - #2808
Merged
Merged
Conversation
The Android wizard turned on tracing for every app without asking and never offered profiling. It now asks Tracing, then Logs, then Profiling only when Tracing is yes, as the Apple wizard does (#2800). Profiling uses the `trace` lifecycle, so it needs tracing. `manifest` takes `{ dsn, enableLogs, enableTracing, enableProfiling }`. It writes the traces sample rate and user-interaction tracing only with tracing, and the profiling session sample rate and lifecycle only with profiling. The user-interaction comment now says it enables transactions, not breadcrumbs. 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 2, 2026 16:16
antonis
approved these changes
Dec 2, 2026
antonis
added a commit
that referenced
this pull request
Dec 2, 2026
…adle-check Resolve the Android wizard test conflicts with #2804 and #2808: keep writeActivity(), which returns the Activity's path, and define main's writeAppWithActivity() on top of it; keep both fs imports; drop the Sentry import that both sides added. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 tasks
This was referenced 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.
Testing
sentry wizard androidon fresh Android Studio projects (getsentry/sentry-java#6797) showed that the Android wizard turns on tracing for every app without asking: the manifest always getsio.sentry.traces.sample-rate = 1.0andio.sentry.traces.user-interaction.enable = true. It never offers profiling. This follows #2800, which made the same change for iOS. The React Native wizard already asks about tracing (#2673).The wizard now asks Tracing, then Logs as before. It asks Profiling only when Tracing is yes. Profiling uses the
tracelifecycle, which profiles only during traces, so it needs tracing. When Tracing is no, the wizard skips the question, ignores any--profilingflag, and logsProfiling: no (it only runs during traces, so it needs Tracing). It sets theenable-tracing,enable-profiling, andenable-logstags.manifestnow takes{ dsn, enableLogs, enableTracing, enableProfiling }:traces.user-interaction.enablenow says it enables transactions, not breadcrumbs.io.sentry.traces.profiling.session-sample-rate(1.0) andio.sentry.traces.profiling.lifecycle(trace) lines come after the tracing lines, as in the Android docs (docs/platforms/android/index.mdxin getsentry/sentry-docs).All three questions default to yes, so pressing Enter gives today's manifest plus profiling.
via Antonis Lilis.
--
View Session [Sentry]