Title: Android transactions lasting for days, TTID halfway in, all spans at the very end. · Issue #3329 · getsentry/sentry-java · GitHub
Open Graph Title: Android transactions lasting for days, TTID halfway in, all spans at the very end. · Issue #3329 · getsentry/sentry-java
X Title: Android transactions lasting for days, TTID halfway in, all spans at the very end. · Issue #3329 · getsentry/sentry-java
Description: Integration sentry-android Build System Gradle AGP Version unknown Proguard Enabled Version 7.2.0 Steps to Reproduce Customer is observing transactions lasting for multiple days where (👉 see linked Jira issue for examples) About 60-70% o...
Open Graph Description: Integration sentry-android Build System Gradle AGP Version unknown Proguard Enabled Version 7.2.0 Steps to Reproduce Customer is observing transactions lasting for multiple days where (👉 see linked...
X Description: Integration sentry-android Build System Gradle AGP Version unknown Proguard Enabled Version 7.2.0 Steps to Reproduce Customer is observing transactions lasting for multiple days where (👉 see linked...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/3329
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Android transactions lasting for days, TTID halfway in, all spans at the very end.","articleBody":"### Integration\r\n\r\nsentry-android\r\n\r\n### Build System\r\n\r\nGradle\r\n\r\n### AGP Version\r\n\r\nunknown\r\n\r\n### Proguard\r\n\r\nEnabled\r\n\r\n### Version\r\n\r\n7.2.0\r\n\r\n### Steps to Reproduce\r\n\r\nCustomer is observing transactions lasting for multiple days where (👉 **see linked Jira issue** for examples)\r\n\r\nAbout 60-70% of all transactions over 1 hour (about 1% of total transactions) exhibit this pattern:\r\n* 2 days until TTID,\r\n* (sometimes) then another day of no spans\r\n* and finally normal spans at the end culminating in transaction being finished\r\n\u003cimg width=\"928\" alt=\"3day-transaction\" src=\"https://github.com/getsentry/sentry-java/assets/490201/37cf8cf4-d3ed-4962-a921-35b86c2ec87d\">\r\n\r\n(this is the main pattern and the one that I we don't have explanation for, there’s also a second, less common, pattern among extra-long transactions where all spans happen early on, except for one long file.read that delays TTID - this is out of scope of this report, please ignore those).\r\n\r\nBelow is customer's configuration:\r\n\r\n**Settings set during application oncreate via dagger/anvil DI**\r\n```\r\noverride fun configure(options: SentryAndroidOptions) {\r\n dsnValidator.ensureDsnIsValid(sentryOptions.dsn)\r\n options.dsn = sentryOptions.dsn\r\n options.isAttachScreenshot = false\r\n options.isAnrEnabled = sentryFeatureGates.get().isAnrEnabled()\r\n options.tracesSampleRate = sentryFeatureGates.get().getTracesSampleRate()\r\n options.isAttachAnrThreadDump = true\r\n options.environment = buildInfo.getBuildChannel().name.lowercase()\r\n options.setBeforeSend { event, _ ->\r\n tagDecorators.forEach {\r\n event.setTag(it.key, it.value.get())\r\n }\r\n event\r\n }\r\n\r\n options.addInAppInclude(\"com.redactedcompanyname\")\r\n\r\n // Remove the Timber integration so that we can use our own\r\n options.integrations.removeIf { it is SentryTimberIntegration }\r\n\r\n if (sentryFeatureGates.get().isFragmentsEnabled()) {\r\n options.addIntegration(\r\n FragmentLifecycleIntegration(\r\n context.applicationContext as Application,\r\n enableFragmentLifecycleBreadcrumbs = true,\r\n enableAutoFragmentLifecycleTracing = true,\r\n ),\r\n )\r\n options.isEnableUserInteractionTracing = true\r\n options.isEnableUserInteractionBreadcrumbs = true\r\n }\r\n\r\n// MANIFEST\r\n \u003capplication>\r\n \u003cprovider\r\n android:name=\"io.sentry.android.core.SentryInitProvider\"\r\n android:authorities=\"${applicationId}.SentryInitProvider\"\r\n tools:node=\"remove\" />\r\n\r\n \u003cprovider\r\n android:name=\"io.sentry.android.core.SentryPerformanceProvider\"\r\n android:authorities=\"${applicationId}.SentryPerformanceProvider\"\r\n tools:node=\"remove\" />\r\n \u003c/application>\r\n```\r\n\r\n**Gradle Plugin**\r\n```\r\n includeProguardMapping.set(true)\r\n includeDependenciesReport.set(true)\r\n includeNativeSources.set(true)\r\n includeSourceContext.set(true)\r\n\r\n tracingInstrumentation.enabled.set(true)\r\n autoInstallation.enabled.set(true)\r\n```\r\n\r\n\r\n### Expected Result\r\n\r\nTransaction start coincides with start timestamp of the first span.\r\n\r\n### Actual Result\r\n\r\nStart timestamp of the first span lags days behind start of transaction.\r\n\r\n┆Issue is synchronized with this [Jira Improvement](https://getsentry.atlassian.net/browse/FEEDBACK-2137) by [Unito](https://www.unito.io)\r\n","author":{"url":"https://github.com/maxkosty","@type":"Person","name":"maxkosty"},"datePublished":"2024-04-05T17:02:19Z","url":"https://github.com/getsentry/sentry-java/issues/3329"}
| 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:529d63a6-d4e0-ddcb-e3dd-d190aa6ecfd5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8402:32405D:58E00A:7C4857:6B0481B6 |
| html-safe-nonce | 0ea430b73a8de8c7132f6669b3768e8c26dbf9087f8c6fc3b7d07f540bb9a1e3 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4NDAyOjMyNDA1RDo1OEUwMEE6N0M0ODU3OjZCMDQ4MUI2IiwidmlzaXRvcl9pZCI6IjE4OTg3MzA4NjA2ODE5MjA5NTAiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 1264c61e439f0d8ea071d320480870b1199d8143344c5c149c6b8f89909ccdd6 |
| hovercard-subject-tag | issue:2228465806 |
| 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/3329/issue_layout |
| twitter:image | https://opengraph.githubassets.com/441d7ee857986345e506c9ca02f2a2bc22744a197d5babb38ef5c6769786bec9/getsentry/sentry-java/issues/3329 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/441d7ee857986345e506c9ca02f2a2bc22744a197d5babb38ef5c6769786bec9/getsentry/sentry-java/issues/3329 |
| og:image:alt | Integration sentry-android Build System Gradle AGP Version unknown Proguard Enabled Version 7.2.0 Steps to Reproduce Customer is observing transactions lasting for multiple days where (👉 see linked... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | maxkosty |
| 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