René's URL Explorer Experiment


Title: feat: Send standalone app start transactions · Issue #5046 · getsentry/sentry-java · GitHub

Open Graph Title: feat: Send standalone app start transactions · Issue #5046 · getsentry/sentry-java

X Title: feat: Send standalone app start transactions · Issue #5046 · getsentry/sentry-java

Description: Currently, app start data is only captured when a ui.load transaction (Activity tracing) starts within the app start window. If no qualifying transaction occurs, app start data is lost entirely. Proposal Instead of attaching app start sp...

Open Graph Description: Currently, app start data is only captured when a ui.load transaction (Activity tracing) starts within the app start window. If no qualifying transaction occurs, app start data is lost entirely. Pr...

X Description: Currently, app start data is only captured when a ui.load transaction (Activity tracing) starts within the app start window. If no qualifying transaction occurs, app start data is lost entirely. Pr...

Opengraph URL: https://github.com/getsentry/sentry-java/issues/5046

X: @github

direct link

Domain: github.com

IPv4 address: 140.82.114.4


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"feat: Send standalone app start transactions","articleBody":"Currently, app start data is only captured when a `ui.load` transaction (Activity tracing) starts within the app start window. If no qualifying transaction occurs, app start data is lost entirely.\n\n### Proposal\n\nInstead of attaching app start spans and measurements to the first Activity transaction, the SDK should send a standalone app start transaction as soon as app start data is available. This transaction carries all the same spans, measurements (`app_start_cold`/`app_start_warm`, TTID, TTFD), and context (`app.start_type`) that are currently attached to the first `ui.load` transaction.\n\n> **Note:** This proposal was generated with Claude Code based on analysis of the Cocoa SDK implementation. Please double-check the details before implementing.\n\n### Transaction / Span Tree\n\n```\nTransaction: \"App Start\" (op: app.start)\n├── process.load\n├── contentprovider.load\n├── application.load\n└── activity lifecycle spans\n```\n\n### Details\n\n- **Transaction name:** `App Start`. The mobile vitals insights dashboard groups transactions by name, so including the app start type allows users to inspect cold and warm starts separately.\n- **Transaction operation:** `app.start`.\n- **Rollout:** Opt-in via a new option `enableStandaloneAppStartTracing`, disabled by default.\n- **Backwards compatibility:** When the option is disabled, existing behavior is unchanged — app start data continues to be attached to the first Activity `ui.load` transaction. When enabled, the first Activity transaction still works correctly on its own, just without the app start spans/measurements attached.\n- **No duplicate data:** When this feature is enabled, the SDK must **not** attach app start spans and measurements to the first Activity transaction. App start data is only sent via the standalone transaction to avoid duplication.\n- **Hybrid SDKs:** Flutter and React Native pull raw app start data from the native layer via `InternalSentrySdk.getAppStartMeasurement()` and construct their own transactions. `enableStandaloneAppStartTracing` should **not** activate when a hybrid SDK is consuming native app start data, to avoid duplicate transactions. See the [hybrid SDK analysis on the Cocoa issue](https://github.com/getsentry/sentry-cocoa/issues/6883#issuecomment-4030699984) for details.\n\n\u003cdetails>\n\u003csummary>Detailed breakdown of what needs to change\u003c/summary>\n\n### Current transaction structure (attached to first Activity)\n\n```\nTransaction: \"MainActivity\" (op: ui.load)\n  ├── Cold Start (op: app.start.cold)           ← grouping span\n  │     ├── process.load\n  │     ├── contentprovider.load\n  │     ├── application.load\n  │     └── activity lifecycle spans\n  ├── MainActivity initial display (op: ui.load.initial_display)\n  └── MainActivity full display (op: ui.load.full_display)\n```\n\n### Target transaction structure (standalone)\n\n```\nTransaction: \"App Start\" (op: app.start)     ← root\n  ├── process.load\n  ├── contentprovider.load\n  ├── application.load\n  └── activity lifecycle spans\n```\n\n### Changes required\n\n**1. New option**\nAdd `enableStandaloneAppStartTracing` to `SentryAndroidOptions` (experimental, disabled by default).\n\n**2. Standalone transaction creation**\nNew class (e.g., `StandaloneAppStartStrategy`) that:\n- Creates a transaction with `op: app.start.cold` / `app.start.warm`, name `\"App Start Cold\"` / `\"App Start Warm\"`\n- Passes `AppStartMetrics` data directly via `TransactionOptions` instead of relying on the global singleton\n- Finishes immediately (timing data is already fully collected)\n- Phase spans are direct children of the root (no intermediate grouping span)\n\n**3. `ActivityLifecycleIntegration` changes**\nWhen standalone mode is enabled:\n- Skip creating the `appStartSpan` child on the first Activity transaction (lines 256-268)\n- The `ui.load` transaction still gets created normally, just without app start data attached\n- Trigger the standalone transaction from `onFirstFrameDrawn()` when app start timing is finalized\n\n**4. `PerformanceAndroidEventProcessor` changes**\nWhen standalone mode is enabled:\n- The `hasAppStartSpan()` check naturally returns false (no app start span on the `ui.load` transaction), so measurements and child spans are not attached\n- For the standalone transaction, the processor needs to attach the child spans (process init, content providers, application.load) as direct children of the root instead of under a grouping span\n\n**5. Hybrid SDK guard**\n`InternalSentrySdk.getAppStartMeasurement()` is used by Flutter/RN to pull raw app start data. The standalone option should not activate when a hybrid SDK is consuming native app start data, to avoid duplicate transactions.\n\n### Key code locations\n\n| File | Role |\n|------|------|\n| `AppStartMetrics.java` | Singleton collecting all timing data via instrumentation hooks |\n| `ActivityLifecycleIntegration.java:160-313` | Creates `ui.load` transaction + `app.start.cold/warm` child span |\n| `PerformanceAndroidEventProcessor.java:76-141` | Adds measurements + child spans to transaction before sending |\n| `PerformanceAndroidEventProcessor.java:224-277` | `attachAppStartSpans()` — adds process init, content provider, app.load spans |\n| `InternalSentrySdk.java:216-240` | `getAppStartMeasurement()` — hybrid SDK bridge |\n| `SentryPerformanceProvider.java` | ContentProvider that captures process start time |\n\n\u003c/details>\n\n### Reference: Cocoa SDK implementation\n\nA proof of concept has already been implemented in the Cocoa SDK: [PR #7660](https://github.com/getsentry/sentry-cocoa/pull/7660) ([tracking issue](https://github.com/getsentry/sentry-cocoa/issues/6883)). The Java SDK's architecture (`AppStartMetrics` singleton + `ActivityLifecycleIntegration` attachment) maps directly onto the Cocoa approach (`SentryAppStartMeasurementProvider` + `SentryTracer` attachment), so the same pattern applies.\n\n### Follow-up work\n\n- **App start sample rate:** With standalone app start transactions, we know at transaction creation time that it's an app start, which makes it possible to set a different (e.g., 100%) sample rate for app start transactions specifically. This should be a follow-up issue.\n- **Same trace ID:** The standalone app start transaction and the first screen load (`ui.load`) transaction should share the same `traceId` so they appear linked in the trace view. The app start transaction should be created with a trace ID that the subsequent first `ui.load` transaction inherits.\n- **Mobile Vitals dashboard:** The sentry product's Mobile Vitals page hard-filters on `transaction.op:[ui.load,navigation]`, which excludes `app.start.*` ops. Dashboard changes are needed — see the [detailed analysis on the Cocoa issue](https://github.com/getsentry/sentry-cocoa/issues/6883#issuecomment-4022581135).\n- **Cross-platform alignment:** Once validated, Flutter and React Native should also adopt standalone app start transactions with `op: app.start.cold/warm` (React Native already has a standalone mode but uses `op: ui.load` — see [hybrid SDK analysis](https://github.com/getsentry/sentry-cocoa/issues/6883#issuecomment-4030699984)).\n\nThe specification was updated by @philipphofmann based on the Cocoa SDK implementation. If you have any clarifying questions, please ping him.","author":{"url":"https://github.com/noahsmartin","@type":"Person","name":"noahsmartin"},"datePublished":"2026-01-21T04:10:25Z","url":"https://github.com/getsentry/sentry-java/issues/5046"}

react-profiling0
react-import-mapreact,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322
route-pattern/_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format)
route-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:255c7dcb-ce77-bfeb-ae31-04a2334c8b1d
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id809A:3CEE1E:491989:6788D7:6B047268
html-safe-noncea82e70367aa4bea067eedc22b85d95b9d27099021436167787153d89c3b7b401
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MDlBOjNDRUUxRTo0OTE5ODk6Njc4OEQ3OjZCMDQ3MjY4IiwidmlzaXRvcl9pZCI6Ijg4MzA1MzU5NDMwMDMwNzUxNzYiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacf8efe9a3dc3b2bdee3b8f6bdd231840051f080ae1ee70eacff8c9d781940e687
hovercard-subject-tagissue:3836489195
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/5046/issue_layout
twitter:imagehttps://opengraph.githubassets.com/8160816de6664444fe0e2de43f51e68ead4848a560897d5fd805ee5dad542d57/getsentry/sentry-java/issues/5046
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/8160816de6664444fe0e2de43f51e68ead4848a560897d5fd805ee5dad542d57/getsentry/sentry-java/issues/5046
og:image:altCurrently, app start data is only captured when a ui.load transaction (Activity tracing) starts within the app start window. If no qualifying transaction occurs, app start data is lost entirely. Pr...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamenoahsmartin
hostnamegithub.com
expected-hostnamegithub.com
Noneae8802492f12d3ba4f6b0d814054e617a2a5616b6327bf8555c10cd5b0dc2a6f
turbo-cache-controlno-preview
go-importgithub.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git
octolytics-dimension-user_id1396951
octolytics-dimension-user_logingetsentry
octolytics-dimension-repository_id3368190
octolytics-dimension-repository_nwogetsentry/sentry-java
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id3368190
octolytics-dimension-repository_network_root_nwogetsentry/sentry-java
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasecfb5f24c6e01d85f70804652a5107e5cac03a161
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/getsentry/sentry-java/issues/5046#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F5046
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F5046
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=getsentry%2Fsentry-java
Reloadhttps://github.com/getsentry/sentry-java/issues/5046
Reloadhttps://github.com/getsentry/sentry-java/issues/5046
Reloadhttps://github.com/getsentry/sentry-java/issues/5046
getsentryhttps://github.com/getsentry
sentry-javahttps://github.com/getsentry/sentry-java
Codehttps://github.com/getsentry/sentry-java
Issues266 (266)https://github.com/getsentry/sentry-java/issues
Pull requests57 (57)https://github.com/getsentry/sentry-java/pulls
Discussionshttps://github.com/getsentry/sentry-java/discussions
Actionshttps://github.com/getsentry/sentry-java/actions
Projectshttps://github.com/getsentry/sentry-java/projects
Security and quality2 (2)https://github.com/getsentry/sentry-java/security
Insightshttps://github.com/getsentry/sentry-java/insights
https://github.com/getsentry/sentry-java
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/5046
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/5046
#5342https://github.com/getsentry/sentry-java/pull/5342
feat: Send standalone app start transactionshttps://github.com/getsentry/sentry-java/issues/5046#top
#5342https://github.com/getsentry/sentry-java/pull/5342
https://github.com/buenaflor
AndroidSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Android%22
FeatureIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Feature%22
Spanshttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Spans%22
https://github.com/noahsmartin
noahsmartinhttps://github.com/noahsmartin
on Jan 21, 2026https://github.com/getsentry/sentry-java/issues/5046#issue-3836489195
hybrid SDK analysis on the Cocoa issuehttps://github.com/getsentry/sentry-cocoa/issues/6883#issuecomment-4030699984
PR #7660https://github.com/getsentry/sentry-cocoa/pull/7660
tracking issuehttps://github.com/getsentry/sentry-cocoa/issues/6883
detailed analysis on the Cocoa issuehttps://github.com/getsentry/sentry-cocoa/issues/6883#issuecomment-4022581135
hybrid SDK analysishttps://github.com/getsentry/sentry-cocoa/issues/6883#issuecomment-4030699984
@philipphofmannhttps://github.com/philipphofmann
noahsmartinhttps://github.com/noahsmartin
JavaSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Java%22
on Jan 21, 2026https://github.com/getsentry/sentry-java/issues/5046#event-22178029604
https://github.com/apps/linear
linearhttps://github.com/apps/linear
on Jan 21, 2026https://github.com/getsentry/sentry-java/issues/5046#issuecomment-3776048805
Linearhttps://linear.app
JAVA-283https://linear.app/getsentry/issue/JAVA-283/include-app-start-spans-for-all-android-app-launches
github-actionshttps://github.com/apps/github-actions
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
on Jan 21, 2026https://github.com/getsentry/sentry-java/issues/5046#event-22178031315
philippsuesshttps://github.com/philippsuess
on Mar 12, 2026https://github.com/getsentry/sentry-java/issues/5046#event-23502577518
dingsdaxhttps://github.com/dingsdax
FeatureIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Feature%22
on Mar 20, 2026https://github.com/getsentry/sentry-java/issues/5046#event-23750897776
linear-codehttps://github.com/apps/linear-code
AndroidSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Android%22
JavaSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Java%22
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
on Mar 23, 2026https://github.com/getsentry/sentry-java/issues/5046#event-23806336807
https://github.com/markushi
markushihttps://github.com/markushi
on Mar 30, 2026https://github.com/getsentry/sentry-java/issues/5046#issuecomment-4155370258
PerformanceAndroidEventProcessorhttps://github.com/getsentry/sentry-java/blob/cb4efff30b122d9e12ce5068ec461cc7d1fd9b95/sentry-android-core/src/main/java/io/sentry/android/core/PerformanceAndroidEventProcessor.java#L86
AppStartMetrics.onFirstFrameDrawnhttps://github.com/getsentry/sentry-java/blob/319f256b2fea529f1d4b9cd8725d3c412fe17603/sentry-android-core/src/main/java/io/sentry/android/core/performance/AppStartMetrics.java#L516
AppStartMetrics.onApplicationPostCreatehttps://github.com/getsentry/sentry-java/blob/319f256b2fea529f1d4b9cd8725d3c412fe17603/sentry-android-core/src/main/java/io/sentry/android/core/performance/AppStartMetrics.java#L317
buenaflorhttps://github.com/buenaflor
on Apr 2, 2026https://github.com/getsentry/sentry-java/issues/5046#event-24144283059
christophaignerhttps://github.com/christophaigner
Spanshttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Spans%22
on Apr 14, 2026https://github.com/getsentry/sentry-java/issues/5046#event-24497058022
https://github.com/buenaflor
buenaflorhttps://github.com/buenaflor
on Apr 24, 2026https://github.com/getsentry/sentry-java/issues/5046#issuecomment-4312746346
buenaflorhttps://github.com/buenaflor
on Apr 24, 2026https://github.com/getsentry/sentry-java/issues/5046#event-24841052773
fix(app-start): resolve standalone tracing misclassification and dupl…https://github.com/getsentry/sentry-java/commit/215a549a93cf4742d085485ab4d7642aeb3a01ea
215a549https://github.com/getsentry/sentry-java/commit/215a549a93cf4742d085485ab4d7642aeb3a01ea
buenaflorhttps://github.com/buenaflor
on Jun 12, 2026https://github.com/getsentry/sentry-java/issues/5046#event-26675292896
feat(android): Add standalone app start tracing (#5342)https://github.com/getsentry/sentry-java/commit/85fd8b11a0c380fa02410ab8ac09a87d38a16e62
#5342https://github.com/getsentry/sentry-java/pull/5342
85fd8b1https://github.com/getsentry/sentry-java/commit/85fd8b11a0c380fa02410ab8ac09a87d38a16e62
buenaflorhttps://github.com/buenaflor
completedhttps://github.com/getsentry/sentry-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#5342https://github.com/getsentry/sentry-java/pull/5342
on Jun 12, 2026https://github.com/getsentry/sentry-java/issues/5046#event-26675293100
lbloderhttps://github.com/lbloder
on Jun 12, 2026https://github.com/getsentry/sentry-java/issues/5046#event-26675712199
feat(android): Add standalone app start tracing (#5342)https://github.com/getsentry/sentry-java/commit/c251654cc9ec9e0abfd00d93f460fb862acfd07d
#5342https://github.com/getsentry/sentry-java/pull/5342
c251654https://github.com/getsentry/sentry-java/commit/c251654cc9ec9e0abfd00d93f460fb862acfd07d
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Jun 17, 2026https://github.com/getsentry/sentry-java/issues/5046#issuecomment-4732620162
GitHub Actionshttps://help.github.com/en/actions
#5342https://github.com/getsentry/sentry-java/pull/5342
8.44.0 releasehttps://github.com/getsentry/sentry-java/releases/tag/8.44.0
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-java/issues/5046
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/5046
buenaflorhttps://github.com/buenaflor
AndroidSDKhttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Android%22
FeatureIssue typehttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Feature%22
Spanshttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Spans%22
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Response headers:
Servergithub.com
Content-Typetext/html; charset=utf-8
Cache-Controlmax-age=0, private, must-revalidate

Viewport: width=device-width


URLs of crawlers that visited me.