Title: Cold start measurement doesn't work in 7.12.1 · Issue #3608 · getsentry/sentry-java · GitHub
Open Graph Title: Cold start measurement doesn't work in 7.12.1 · Issue #3608 · getsentry/sentry-java
X Title: Cold start measurement doesn't work in 7.12.1 · Issue #3608 · getsentry/sentry-java
Description: Integration sentry-android Build System Gradle AGP Version 8.5.1 Proguard Enabled Version 7.12.1 Steps to Reproduce Updated SDK from 7.9.0 to 7.12.1 Performance V2 is enabled Application launch from foreground(isForegroundImportance is t...
Open Graph Description: Integration sentry-android Build System Gradle AGP Version 8.5.1 Proguard Enabled Version 7.12.1 Steps to Reproduce Updated SDK from 7.9.0 to 7.12.1 Performance V2 is enabled Application launch fro...
X Description: Integration sentry-android Build System Gradle AGP Version 8.5.1 Proguard Enabled Version 7.12.1 Steps to Reproduce Updated SDK from 7.9.0 to 7.12.1 Performance V2 is enabled Application launch fro...
Mail addresses
stefano.siano@sentry.io
Opengraph URL: https://github.com/getsentry/sentry-java/issues/3608
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Cold start measurement doesn't work in 7.12.1","articleBody":"### Integration\n\nsentry-android\n\n### Build System\n\nGradle\n\n### AGP Version\n\n8.5.1\n\n### Proguard\n\nEnabled\n\n### Version\n\n7.12.1\n\n### Steps to Reproduce\n\nUpdated SDK from 7.9.0 to 7.12.1\n\nPerformance V2 is enabled\n\nApplication launch from foreground(`isForegroundImportance` is `true`)\n\n### Expected Result\n\nCold start measurement works\n\n### Actual Result\n\nTransactions are missing the `app.start.cold` span.\n\nI debugged the SDK, and the problem is here \nhttps://github.com/getsentry/sentry-java/blob/7ee04939ef1d36a477fc99f382a4268975bdae36/sentry-android-core/src/main/java/io/sentry/android/core/performance/AppStartMetrics.java#L237\n\nThe `Runnable` passed to `Handler.post` is called before `AppStartMetrics.onActivityCreated` so that `appLaunchedInForeground` set to `false` which leads to `AppStartMetrics.getAppStartTimeSpanWithFallback` returns the empty span. ","author":{"url":"https://github.com/zhukic","@type":"Person","name":"zhukic"},"datePublished":"2024-07-29T10:43:37Z","url":"https://github.com/getsentry/sentry-java/issues/3608"}
| react-profiling | 0 |
| react-import-map | react,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-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:390066ab-2d51-7365-78bc-51413bccdd11 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E14:EE4AB:9A7BDF:D25FFB:6B048082 |
| html-safe-nonce | 0c731c24023d468f754e712ba902b95d872c10d732baf5ff05e8dcd48a5a82f9 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTE0OkVFNEFCOjlBN0JERjpEMjVGRkI6NkIwNDgwODIiLCJ2aXNpdG9yX2lkIjoiMjk4NDc4NDAyODA0NzI3ODIxMCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dda779c3584effd66fddb66b79c99d46cc79aa4c0fa68d1742304853e87b7af6 |
| hovercard-subject-tag | issue:2435073173 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/getsentry/sentry-java/3608/issue_layout |
| twitter:image | https://opengraph.githubassets.com/824a1f0ce42edf1ab070418da6a3a9f06ebc272f672d1e0d4004a7f114db9ec5/getsentry/sentry-java/issues/3608 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/824a1f0ce42edf1ab070418da6a3a9f06ebc272f672d1e0d4004a7f114db9ec5/getsentry/sentry-java/issues/3608 |
| og:image:alt | Integration sentry-android Build System Gradle AGP Version 8.5.1 Proguard Enabled Version 7.12.1 Steps to Reproduce Updated SDK from 7.9.0 to 7.12.1 Performance V2 is enabled Application launch fro... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | zhukic |
| hostname | github.com |
| expected-hostname | github.com |
| None | 0366ddfb372682a32e92a5d86155cb08fa83e5bbe79953a968789f2f7e24c511 |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-java git https://github.com/getsentry/sentry-java.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3368190 |
| octolytics-dimension-repository_nwo | getsentry/sentry-java |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3368190 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-java |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | ed3f2e01f6b7672780c586c8af0e72726374d7b6 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width