Repository navigation
feat(cli): Ask about tracing and profiling in the Apple wizard - #2800
Merged
Merged
Conversation
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 14:52
antonis
approved these changes
Dec 2, 2026
…-tracing-profiling Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…est event #2798 wraps the test event at the end of both snippets in #if DEBUG. Update the expected snippets for the tracing and profiling answers, and check for the profiling #if line instead of any #if, since every snippet now has one. Pass options to the snippet functions in #2798's test. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
antonis
enabled auto-merge
December 2, 2026 15:09
github-actions Bot
pushed a commit
to Fields-Education/sentry-mcp
that referenced
this pull request
Dec 3, 2026
…sentry#2808) Testing `sentry wizard android` on fresh Android Studio projects (getsentry/sentry-java#6797) showed that the Android wizard turns on tracing for every app without asking: the manifest always gets `io.sentry.traces.sample-rate = 1.0` and `io.sentry.traces.user-interaction.enable = true`. It never offers profiling. This follows getsentry#2800, which made the same change for iOS. The React Native wizard already asks about tracing (getsentry#2673). The wizard now asks Tracing, then Logs as before. It asks Profiling only when Tracing is yes. Profiling uses the `trace` lifecycle, which profiles only during traces, so it needs tracing. When Tracing is no, the wizard skips the question, ignores any `--profiling` flag, and logs `Profiling: no (it only runs during traces, so it needs Tracing)`. It sets the `enable-tracing`, `enable-profiling`, and `enable-logs` tags. `manifest` now takes `{ dsn, enableLogs, enableTracing, enableProfiling }`: - The traces sample rate and user-interaction tracing lines are written only with tracing. User-interaction tracing creates transactions, so it needs tracing. The user-interaction breadcrumbs are a separate option that is on by default, so they don't change. The comment above `traces.user-interaction.enable` now says it enables transactions, not breadcrumbs. - With profiling, the `io.sentry.traces.profiling.session-sample-rate` (1.0) and `io.sentry.traces.profiling.lifecycle` (`trace`) lines come after the tracing lines, as in the Android docs (`docs/platforms/android/index.mdx` in getsentry/sentry-docs). - Everything else stays in the same order, and leaving a block out leaves no extra blank lines. All three questions default to yes, so pressing Enter gives today's manifest plus profiling. <!-- junior-request-attribution:start --> via **Antonis Lilis**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AD0CAPGCFLSC%3A1796225521.324199 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AD0CAPGCFLSC%3A1796225521.324199) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0CAPGCFLSC%3A1796225521.324199/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Antonis Lilis <antonis.lilis@sentry.io>
5 tasks
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 ioson real projects showed that the Apple wizard turns on tracing (tracesSampleRate = 1.0) and profiling (configureProfilingwithsessionSampleRate = 1.0and the trace lifecycle) for every app without asking.@sentry/wizarddoes the same. The--tracingand--profilinganswer flags already exist, and the React Native wizard asks about tracing (#2673).The Feature Selection step now asks Tracing first, then Logs as before. It asks Profiling in a second prompt only when Tracing is yes, following the React Router wizard's Instrumentation API follow-up. With the trace lifecycle, profiling only runs during traces, so it does nothing without tracing. When Tracing is no, profiling is off, any
--profilingflag is ignored, and the wizard logs why.getSwiftSnippetandgetObjcSnippetnow take{ dsn, enableLogs, enableTracing, enableProfiling }. They write thetracesSampleRatelines only with tracing, and the profiling block only with profiling. The profiling block stays inside the platform#iffrom #2791.injectCodeSnippetandaddCodeSnippetToProjectpass the answers through. The wizard setsenable-tracing,enable-profiling, andenable-logstelemetry tags, using the same names as the React Native and Android wizards.Both questions default to yes, so pressing Enter keeps today's setup.
via Antonis Lilis.
--
View Session [Sentry]