Skip to content

feat: promote standalone app start out of experimental - #8715

Open
itaybre wants to merge 4 commits into
mainfrom
feat/promote-standalone-app-start
Open

feat: promote standalone app start out of experimental#8715
itaybre wants to merge 4 commits into
mainfrom
feat/promote-standalone-app-start

Conversation

@itaybre

@itaybre itaybre commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Move enableStandaloneAppStartTracing from options.experimental to a top-level option on Options (default false)
  • Add ObjC compatibility wrapper (SentryObjCOptions.h / SentryObjCOptions.swift)
  • Update all references in source, tests, samples, and docs

Test plan

  • make build-ios passes
  • SentryAppStartTrackerTests — 25 tests pass
  • SentryEnabledFeaturesBuilderTests — 35 tests pass
  • make generate-public-api — needs Xcode 16 (CI will handle)
  • Full CI with run-full-ci label

Closes #8720

itaybre added 3 commits August 6, 2026 16:37
Move `enableStandaloneAppStartTracing` from
`options.experimental` to a top-level option on `Options`.
@itaybre itaybre added the run-full-ci Allows gated GitHub Action workflows to run for a labelled pull request label Aug 6, 2026
@itaybre
itaybre marked this pull request as ready for review August 6, 2026 19:54
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor
Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against 4fadbf1

Comment on lines +55 to 57
if options.enableStandaloneAppStartTracing {
features.append("standaloneAppStartTracing")
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bug: Unconditional access to enableStandaloneAppStartTracing will cause a compilation error on macOS and watchOS.
Severity: HIGH

Suggested Fix

Wrap the access to options.enableStandaloneAppStartTracing in SentryEnabledFeaturesBuilder.swift with the same platform-specific conditional compilation block used for its definition: #if (os(iOS) || os(tvOS) || os(visionOS)) && !SENTRY_NO_UI_FRAMEWORK.

Prompt for AI Agent
Review the code at the location below. A potential bug has been identified by an AI
agent. Verify if this is a real issue. If it is, propose a fix; if not, explain why it's
not valid.

Location: Sources/Swift/Helper/SentryEnabledFeaturesBuilder.swift#L55-L57

Potential issue: The property `enableStandaloneAppStartTracing` is defined within a
conditional compilation block for iOS, tvOS, and visionOS only in `Options.swift`.
However, the code in `SentryEnabledFeaturesBuilder.swift` accesses this property
unconditionally. This will lead to a compilation error when building for other platforms
supported by the SDK, such as macOS or watchOS, because the property will not exist on
the `Options` object for those targets.

Also affects:

  • Sources/Swift/Options.swift:352~352

Did we get this right? 👍 / 👎 to inform future reviews.

@sentry

sentry Bot commented Aug 7, 2026

Copy link
Copy Markdown

📲 Install Builds

iOS

🔗 App Name App ID Version Configuration
SDK-Size io.sentry.sample.SDK-Size 9.25.0 (1) Release

⚙️ sentry-cocoa Build Distribution Settings

@philprime philprime left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM after CI is green

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

approved run-full-ci Allows gated GitHub Action workflows to run for a labelled pull request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat: promote standalone app start out of experimental

2 participants