Title: docs: Update Android WebView guidance for connected traces · Issue #6161 · getsentry/sentry-java · GitHub
Open Graph Title: docs: Update Android WebView guidance for connected traces · Issue #6161 · getsentry/sentry-java
X Title: docs: Update Android WebView guidance for connected traces · Issue #6161 · getsentry/sentry-java
Description: Outcome Replace the current Android WebView guidance — which states the SDK "doesn't interact with the mobile application's web views" — with setup for the new trace-connection support. Acceptance criteria Documents SentryWebViewTracing....
Open Graph Description: Outcome Replace the current Android WebView guidance — which states the SDK "doesn't interact with the mobile application's web views" — with setup for the new trace-connection support. Acceptance ...
X Description: Outcome Replace the current Android WebView guidance — which states the SDK "doesn't interact with the mobile application's web views" — with setup for the new trace-connection su...
Opengraph URL: https://github.com/getsentry/sentry-java/issues/6161
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"docs: Update Android WebView guidance for connected traces","articleBody":"## Outcome\n\nReplace the current Android WebView guidance — which states the SDK *\"doesn't interact with the mobile application's web views\"* — with setup for the new trace-connection support.\n\n## Acceptance criteria\n\n* Documents `SentryWebViewTracing.addTracePropagation(webView, allowedHosts...)`. It writes the native trace into the page as `sentry-trace` and `baggage` meta tags at document start, using `androidx.webkit`'s `WebViewCompat.addDocumentStartJavaScript`.\n* Documents the prerequisites:\n * the app adds the `androidx.webkit:webkit` dependency;\n * the System WebView supports document-start scripts (minimum version TBD);\n * the call is made on the main thread, before `loadUrl`;\n * otherwise the call logs a warning and returns `false`.\n* Documents `allowedHosts` as a trust boundary, separate from `tracePropagationTargets`:\n * matching covers the host and its subdomains, over https;\n * a non-default port in an entry is kept.\n* Documents that the page in the WebView must run `@sentry/browser` with `browserTracingIntegration`.\n* Documents the limitations:\n * the trace is a snapshot taken at call time, so call it again to update it for a later page load;\n * only the main frame receives it, and only the entry pageload continues the trace;\n * `sentry-transaction` is removed from `baggage`;\n * native and web sampling can differ when no span is active;\n * Custom Tabs and `loadData`/`file://` content aren't supported (use `WebViewAssetLoader` for bundled pages).\n* Wording coordinated with the Apple and React Native WebView doc updates for cross-platform consistency.\n\n## References\n\n* Implementation: #6395. The sample screen is `sentry-samples-android`'s `WebViewActivity`.\n* Meta-tag continuation contract the page should point to: [https://docs.sentry.io/platforms/javascript/tracing/distributed-tracing/](\u003chttps://docs.sentry.io/platforms/javascript/tracing/distributed-tracing/>)\n* Current Android WebView page to replace: [https://docs.sentry.io/platforms/android/configuration/webview/](\u003chttps://docs.sentry.io/platforms/android/configuration/webview/>)\n* Cross-platform parity: RN docs issue (getsentry/sentry-react-native#6782), Apple docs issue\n","author":{"url":"https://github.com/antonis","@type":"Person","name":"antonis"},"datePublished":"2026-09-24T12:14:29Z","url":"https://github.com/getsentry/sentry-java/issues/6161"}
| 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:d862428d-15e7-f399-1ea9-624d4a6b97d0 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 830A:25A901:AE7BE3:EDD506:6B0451B4 |
| html-safe-nonce | 6016337c833669baba3e9b3223f81ca28d67ed796e3b663a2af46134cb5724d6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MzBBOjI1QTkwMTpBRTdCRTM6RURENTA2OjZCMDQ1MUI0IiwidmlzaXRvcl9pZCI6IjU1NTE5NTgwMDc0NjgwMjAxNDgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 7eaaa39b1102a137a04b38de17beb99dd02b19ad7eddc658bbea2a34d542354b |
| hovercard-subject-tag | issue:5568125605 |
| 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/6161/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a24efc5d31b471f18ceafadbd781702e7e3785a300aa63ef9f55dcafae1669ff/getsentry/sentry-java/issues/6161 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a24efc5d31b471f18ceafadbd781702e7e3785a300aa63ef9f55dcafae1669ff/getsentry/sentry-java/issues/6161 |
| og:image:alt | Outcome Replace the current Android WebView guidance — which states the SDK "doesn't interact with the mobile application's web views" — with setup for the new trace-connection support. Acceptance ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | antonis |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| 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 | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| 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