Title: Wrong TTID and TTFD · Issue #3145 · getsentry/sentry-java · GitHub
Open Graph Title: Wrong TTID and TTFD · Issue #3145 · getsentry/sentry-java
X Title: Wrong TTID and TTFD · Issue #3145 · getsentry/sentry-java
Description: Integration sentry-android Build System Gradle AGP Version 8.1.0 Proguard Enabled Version 7.2.0 Steps to Reproduce There is a case where TTID and TTFD are incorrectly recorded. The reproducible path is as follows: when Activity(1) is tur...
Open Graph Description: Integration sentry-android Build System Gradle AGP Version 8.1.0 Proguard Enabled Version 7.2.0 Steps to Reproduce There is a case where TTID and TTFD are incorrectly recorded. The reproducible pat...
X Description: Integration sentry-android Build System Gradle AGP Version 8.1.0 Proguard Enabled Version 7.2.0 Steps to Reproduce There is a case where TTID and TTFD are incorrectly recorded. The reproducible pat...
Mail addresses
karl.struggl@sentry.io
Opengraph URL: https://github.com/getsentry/sentry-java/issues/3145
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Wrong TTID and TTFD","articleBody":"### Integration\n\nsentry-android\n\n### Build System\n\nGradle\n\n### AGP Version\n\n8.1.0\n\n### Proguard\n\nEnabled\n\n### Version\n\n7.2.0\n\n### Steps to Reproduce\n\nThere is a case where TTID and TTFD are incorrectly recorded. The reproducible path is as follows: when Activity(1) is turned on, if you immediately enter the new Activity(2) within 1-2 seconds, and then return to Activity(1), TTID and TTFD are overwritten with onResume timestamp values, resulting in incorrect values being recorded. The suspected code location is as follows.\n\nhttps://github.com/getsentry/sentry-java/blob/9119d59d9db7822ab9319598cce020e731c9d015/sentry-android-core/src/main/java/io/sentry/android/core/ActivityLifecycleIntegration.java#L564\n\nHowever, it seems to be frequently reproducible when the time between starting Activity(1) and returning to Activity(1) is within about 3 seconds. If you navigate to Activity(2) and stay there for a while, you can confirm that TTID and TTFD of Activity(1) are correctly recorded on the Discovery page. However, in cases where you return within 3 seconds, there are occasional instances of incorrect recording.\n\n\n### Expected Result\n\nActivity(2) was started through a button click in Activity(1), and since TTFD was reported before the start, it should represent the time just before Activity(2) started.\n\n### Actual Result\n\nThe time when returned to Activity(1).\n\n┆Issue is synchronized with this [Jira Improvement](https://getsentry.atlassian.net/browse/FEEDBACK-2139) by [Unito](https://www.unito.io)\n","author":{"url":"https://github.com/ohjunki","@type":"Person","name":"ohjunki"},"datePublished":"2024-01-17T10:06:54Z","url":"https://github.com/getsentry/sentry-java/issues/3145"}
| 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:cdcfb448-616c-663c-fb5b-941780245d3a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E714:281ABB:C4A3A8:10BCF62:6B048944 |
| html-safe-nonce | 7b31928cd2419190cc7e22c6944dbf79691b17772d1ade45eee03ebc9b2004d2 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNzE0OjI4MUFCQjpDNEEzQTg6MTBCQ0Y2Mjo2QjA0ODk0NCIsInZpc2l0b3JfaWQiOiI2Njk2OTE1Mzg0MjgyNjc5NjIwIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | db2dce4ef458c40e0d2d5e129c13eeda9145713a641748c22279100005a3e554 |
| hovercard-subject-tag | issue:2085841791 |
| 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/3145/issue_layout |
| twitter:image | https://opengraph.githubassets.com/50a6c45aaf2d5bc551bd95eaddf99d86aa93744fa49b52cd92d929b377a3432e/getsentry/sentry-java/issues/3145 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/50a6c45aaf2d5bc551bd95eaddf99d86aa93744fa49b52cd92d929b377a3432e/getsentry/sentry-java/issues/3145 |
| og:image:alt | Integration sentry-android Build System Gradle AGP Version 8.1.0 Proguard Enabled Version 7.2.0 Steps to Reproduce There is a case where TTID and TTFD are incorrectly recorded. The reproducible pat... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ohjunki |
| hostname | github.com |
| expected-hostname | github.com |
| None | 1d5c152376e38b7d2e37f3d5179be29a73bee93b85110da28a4eebe1159cdc70 |
| 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 | f5017e8ff4ea25a8011fcf0f2a0e430c60dc86c8 |
| 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