Title: Navigation spans are started as child spans if experimental interaction spans are used · Issue #17450 · getsentry/sentry-javascript · GitHub
Open Graph Title: Navigation spans are started as child spans if experimental interaction spans are used · Issue #17450 · getsentry/sentry-javascript
X Title: Navigation spans are started as child spans if experimental interaction spans are used · Issue #17450 · getsentry/sentry-javascript
Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using the latest SDK release https://github.com/...
Open Graph Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
X Description: Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/17450
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Navigation spans are started as child spans if experimental interaction spans are used","articleBody":"### Is there an existing issue for this?\n\n- [x] I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues\n- [x] I have reviewed the documentation https://docs.sentry.io/\n- [x] I am using the latest SDK release https://github.com/getsentry/sentry-javascript/releases\n\n### How do you use Sentry?\n\nSentry Saas (sentry.io)\n\n### Which SDK are you using?\n\n@sentry/vue -- this might very well be a `@sentry/browser` issue!\n\n### SDK Version\n\n10.5.0\n\n### Framework Version\n\nVue ^3.5.17\n\n### Link to Sentry event\n\nhttps://sentry.sentry.io/insights/backend/summary/trace/1b557e3b2689448a93ef69a4ecf422a6/?environment=production&fov=1%2C74310&node=span-8e10d6b5432bc83b&project=4509865373859840&query=transaction.op%3Ahttp.server&referrer=insights-backend-overview&source=performance_transaction_summary&statsPeriod=24h×tamp=1755892752&transaction=GiftCardController%23create\n\n### Reproduction Example/SDK Setup\n\nhttps://github.com/getsentry/gib-potato/blob/ba97bd13316b2c0d3c8ffb554cd0d720bea09245/frontend/src/main.js#L19-L67\n\n### Steps to Reproduce\n\n1. Enable experimental interaction spans && tracing\n2. Click button that triggers a navigation\n\n### Expected Result\n\nThis is the hard part: I don't particularly like the expected result but our current tracing model relies on the fact that `navigation` spans start a new trace.\n\nSo therefore, I'd expect the `navigation` span to always be a root span, _unless_ we detect it's a `navigation.redirect` span in which case it must not be a root span. 🥲 \n\nThe side-effect of this is that the surrounding interaction span will not link directly to the navigation span but maybe we can tackle this separately (This would be a good candidate for increasing interaction span robustness. I just can't find the issue right now). Given that interaction spans are experimental, I don't care too much about this right now though.\n\n### Actual Result\n\nThe navigation span is started as a child of the `ui.interaction.click` interaction idle span.\n\n\u003cimg width=\"500\" height=\"199\" alt=\"Image\" src=\"https://github.com/user-attachments/assets/3917a31a-3e39-4821-9619-eab6dfe43cdb\" />","author":{"url":"https://github.com/Lms24","@type":"Person","name":"Lms24"},"datePublished":"2025-08-25T15:19:57Z","url":"https://github.com/getsentry/sentry-javascript/issues/17450"}
| 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:1781409d-d90d-63f9-2a89-b76c4de204d2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C5C6:7C906:C6A7BE:10D3C2C:6B0548DD |
| html-safe-nonce | ad8b417b8fb8955770d6f7be6db3f081b0883c13604444717596068c3bc29a01 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNUM2OjdDOTA2OkM2QTdCRToxMEQzQzJDOjZCMDU0OEREIiwidmlzaXRvcl9pZCI6IjYyODgzNzcxNTQ0ODkzNzA4NDUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 920c1010c1e483af1daec9e85c3321c2ec445247b518c377aaa5a43c173798ce |
| hovercard-subject-tag | issue:3352261132 |
| 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-javascript/17450/issue_layout |
| twitter:image | https://opengraph.githubassets.com/6a47a07793ef36484791952edd1271042f3db575032812446782efb74d0137b0/getsentry/sentry-javascript/issues/17450 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/6a47a07793ef36484791952edd1271042f3db575032812446782efb74d0137b0/getsentry/sentry-javascript/issues/17450 |
| og:image:alt | Is there an existing issue for this? I have checked for existing issues https://github.com/getsentry/sentry-javascript/issues I have reviewed the documentation https://docs.sentry.io/ I am using th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Lms24 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 854d880890b5e847b3fce9d1b31f032107baeddeebad2aa379c48aa4f1451f6b |
| turbo-cache-control | no-preview |
| go-import | github.com/getsentry/sentry-javascript git https://github.com/getsentry/sentry-javascript.git |
| octolytics-dimension-user_id | 1396951 |
| octolytics-dimension-user_login | getsentry |
| octolytics-dimension-repository_id | 3328572 |
| octolytics-dimension-repository_nwo | getsentry/sentry-javascript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 3328572 |
| octolytics-dimension-repository_network_root_nwo | getsentry/sentry-javascript |
| 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 | 220e980097d94ce616d5d11fbd5316d208e3fc93 |
| 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