René's URL Explorer Experiment


Title: Add API to extend app start (Android) · Issue #5553 · getsentry/sentry-java · GitHub

Open Graph Title: Add API to extend app start (Android) · Issue #5553 · getsentry/sentry-java

X Title: Add API to extend app start (Android) · Issue #5553 · getsentry/sentry-java

Description: Add an API to the Sentry Android SDK to extend the app start measurement past its default end point and instrument the extended region with child spans. // Simple: extend the app start window, then finish Sentry.extendAppStart() initiali...

Open Graph Description: Add an API to the Sentry Android SDK to extend the app start measurement past its default end point and instrument the extended region with child spans. // Simple: extend the app start window, then...

X Description: Add an API to the Sentry Android SDK to extend the app start measurement past its default end point and instrument the extended region with child spans. // Simple: extend the app start window, then...

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

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":"Add API to extend app start (Android)","articleBody":"Add an API to the Sentry Android SDK to extend the app start measurement past its default end point and instrument the extended region with child spans.\n\n```kotlin\n// Simple: extend the app start window, then finish\nSentry.extendAppStart()\ninitializeRemoteConfig()\nSentry.finishExtendedAppStart()\n```\n\n```kotlin\n// With child spans: instrument the extended region\nSentry.extendAppStart()\nval span = Sentry.getExtendedAppStartSpan()\n\nval configSpan = span.startChild(\"app.init\", \"fetch remote config\")\nfetchRemoteConfig()\nconfigSpan.finish()\n\nSentry.finishExtendedAppStart()\n```\n\n**Reference:** getsentry/sentry-cocoa#6886 (Done, `SentryExtendedAppLaunchManager`). **Siblings:** getsentry/sentry-dart#3767, getsentry/sentry-react-native#6303 — shared contract, per-platform deltas below.\n\n## API\n\n* `extendAppStart(): void` — creates the extended app start span (op `app.start.extended`, description `\"Extended App Start\"`).\n* `finishExtendedAppStart` — finishes it (returns void); triggers finalization.\n* `getExtendedAppStartSpan(): ISpan` — returns the span for attaching children; a no-op span when there's no active extension.\n\n> `finishExtendedAppStart` is equivalent to calling `.finish()` on the returned span.\n\n## Lifecycle\n\n* `extendAppStart`**:** creates the span (start = call time). No-ops if app start already finished, if none is in progress, or on repeat calls (first wins).\n* `getExtendedAppStartSpan`**:** returns the extended span, else a no-op span.\n* `finishExtendedAppStart`**:** no-ops if not extended or called twice. Doesn't finalize directly — the parent (auto-generated, `waitForChildren`) finalizes when its last child finishes and trims its end to that child. Open children of the extended span are finished `cancelled` at the finish-call time.\n\n## Duration & measurement\n\n* Parent duration = end of the last child to finish (trim-to-last-child), **floored at the default app start end** — i.e. `end = max(last child end, default app start end)`. Extending can only push the end *later*; finishing before the default end keeps the default (never shorter than a non-extended app start). The extended span is just one participant.\n* App start measurement = that final duration (process start → last child), set at **finalization**. The normal completion-time measurement must be suppressed in extended mode so the early (non-extended) value doesn't win.\n\n## Timeout\n\n* Parent's auto-finish deadline is 30s. If `finishExtendedAppStart` is never called, the transaction auto-finishes on the deadline (unfinished children → `deadlineExceeded`, snapped to transaction end), is still captured, but the `app.vitals.start` measurement is suppressed — never emit a ~30s app start. Same for standalone and `ui.load`.\n\n## Standalone & non-standalone\n\n* Both supported, same mechanism: standalone uses the app-start tracer, non-standalone the `ui.load` transaction (also `waitForChildren` + deadline). In non-standalone the duration is bounded by anything keeping `ui.load` open (TTID, other children), so it can include spans unrelated to the extension.\n\n## Android delta\n\n* The span breakdown is captured natively (`ActivityLifecycleIntegration` / `AppStartMetrics`); extended launches must inherit the existing `app_start_type` tagging (getsentry/sentry-java#3989).\n* Behaviour must be identical whether standalone is opt-in or default (getsentry/sentry-java#5046, getsentry/sentry-java#5376).\n* Confirm the deadline maps onto the idle-transaction implementation, not a separate timer.\n\n## Acceptance criteria\n\n- [ ] `extendAppStart()` creates the span before finish; no-ops when too late, not started, or called repeatedly.\n- [ ] `getExtendedAppStartSpan()` returns the span, else a no-op span (including after finish).\n- [ ] Child spans render under `Extended App Start`.\n- [ ] `finishExtendedAppStart` no-ops if not extended or called twice; finalizes via `waitForChildren` with transaction end = last child.\n- [ ] Exactly one App Start transaction across all paths.\n- [ ] Measurement = process start → last child, floored at the default app start end (never shorter than a non-extended app start), set at finalization.\n- [ ] Open children at finish → `cancelled`; on deadline → `deadlineExceeded`, snapped to end.\n- [ ] Deadline path: transaction captured, `app.vitals.start` suppressed.\n- [ ] Extended app starts carry a segmentation attribute, and inherit `app_start_type` metadata.\n- [ ] Docs updated.","author":{"url":"https://github.com/buenaflor","@type":"Person","name":"buenaflor"},"datePublished":"2026-06-16T20:35:31Z","url":"https://github.com/getsentry/sentry-java/issues/5553"}

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:7e222175-0959-f10a-e0bb-52b686118b56
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idCFB2:3C88CA:3F31A3:572238:6B046DA7
html-safe-nonce9d0622ea65557838e377731e7f59f9e4df5364d9841ab2273705ffe0197cf0af
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDRkIyOjNDODhDQTozRjMxQTM6NTcyMjM4OjZCMDQ2REE3IiwidmlzaXRvcl9pZCI6IjE5NzM1ODUwNjI1NDUwOTIwMDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac1d6060b468c250b572d4e0395b2d6bec597509e3e57af2a71f60367c3068d2a8
hovercard-subject-tagissue:4677710711
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/5553/issue_layout
twitter:imagehttps://opengraph.githubassets.com/f744e47dc778139a200b068baba8eb10722264d966be9ee1d0a9aff1b3eb4da2/getsentry/sentry-java/issues/5553
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f744e47dc778139a200b068baba8eb10722264d966be9ee1d0a9aff1b3eb4da2/getsentry/sentry-java/issues/5553
og:image:altAdd an API to the Sentry Android SDK to extend the app start measurement past its default end point and instrument the extended region with child spans. // Simple: extend the app start window, then...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamebuenaflor
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/5553#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fgetsentry%2Fsentry-java%2Fissues%2F5553
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%2F5553
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/5553
Reloadhttps://github.com/getsentry/sentry-java/issues/5553
Reloadhttps://github.com/getsentry/sentry-java/issues/5553
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/5553
New issuehttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/5553
#5604https://github.com/getsentry/sentry-java/pull/5604
Add API to extend app start (Android)https://github.com/getsentry/sentry-java/issues/5553#top
#5604https://github.com/getsentry/sentry-java/pull/5604
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%22
https://github.com/buenaflor
buenaflorhttps://github.com/buenaflor
on Jun 16, 2026https://github.com/getsentry/sentry-java/issues/5553#issue-4677710711
getsentry/sentry-cocoa#6886https://github.com/getsentry/sentry-cocoa/issues/6886
getsentry/sentry-dart#3767https://github.com/getsentry/sentry-dart/issues/3767
getsentry/sentry-react-native#6303https://github.com/getsentry/sentry-react-native/issues/6303
Android: Tag all spans with app_start_type #3989https://github.com/getsentry/sentry-java/issues/3989
feat: Send standalone app start transactions #5046https://github.com/getsentry/sentry-java/issues/5046
Make Standalone App Start spans a default #5376https://github.com/getsentry/sentry-java/issues/5376
https://github.com/apps/linear-code
linear-codehttps://github.com/apps/linear-code
on Jun 16, 2026https://github.com/getsentry/sentry-java/issues/5553#issuecomment-4723367443
Linear Codehttps://linear.app
JAVA-564https://linear.app/getsentry/issue/JAVA-564
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 Jun 16, 2026https://github.com/getsentry/sentry-java/issues/5553#event-26828326546
buenaflorhttps://github.com/buenaflor
on Jun 23, 2026https://github.com/getsentry/sentry-java/issues/5553#event-27084346353
buenaflorhttps://github.com/buenaflor
completedhttps://github.com/getsentry/sentry-java/issues?q=is%3Aissue%20state%3Aclosed%20archived%3Afalse%20reason%3Acompleted
#5604https://github.com/getsentry/sentry-java/pull/5604
on Jul 7, 2026https://github.com/getsentry/sentry-java/issues/5553#event-27684162644
https://github.com/apps/github-actions
github-actionshttps://github.com/apps/github-actions
on Jul 8, 2026https://github.com/getsentry/sentry-java/issues/5553#issuecomment-4914845888
GitHub Actionshttps://help.github.com/en/actions
#5604https://github.com/getsentry/sentry-java/pull/5604
8.48.0 releasehttps://github.com/getsentry/sentry-java/releases/tag/8.48.0
Sign up for freehttps://github.com/signup?return_to=https://github.com/getsentry/sentry-java/issues/5553
Sign in to commenthttps://github.com/login?return_to=https://github.com/getsentry/sentry-java/issues/5553
Platform: Javahttps://github.com/getsentry/sentry-java/issues?q=state%3Aopen%20label%3A%22Platform%3A%20Java%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.