Title: Port React Router E2E test apps to span streaming · Issue #23798 · getsentry/sentry-javascript · GitHub
Open Graph Title: Port React Router E2E test apps to span streaming · Issue #23798 · getsentry/sentry-javascript
X Title: Port React Router E2E test apps to span streaming · Issue #23798 · getsentry/sentry-javascript
Description: Port these E2E test applications to span streaming (17 apps). Apps react-create-browser-router react-create-hash-router react-create-memory-router react-router-5 react-router-6 react-router-6-descendant-routes react-router-6-use-routes r...
Open Graph Description: Port these E2E test applications to span streaming (17 apps). Apps react-create-browser-router react-create-hash-router react-create-memory-router react-router-5 react-router-6 react-router-6-desce...
X Description: Port these E2E test applications to span streaming (17 apps). Apps react-create-browser-router react-create-hash-router react-create-memory-router react-router-5 react-router-6 react-router-6-desce...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/23798
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Port React Router E2E test apps to span streaming","articleBody":"Port these E2E test applications to span streaming (17 apps).\n\n## Apps\n\n* react-create-browser-router\n* react-create-hash-router\n* react-create-memory-router\n* react-router-5\n* react-router-6\n* react-router-6-descendant-routes\n* react-router-6-use-routes\n* react-router-7-cross-usage\n* react-router-7-framework\n* react-router-7-framework-instrumentation\n* react-router-7-framework-spa\n* react-router-7-lazy-routes\n* react-router-7-spa\n* react-router-8-cloudflare\n* react-router-8-cross-usage\n* react-router-8-framework\n* react-router-8-spa\n\n## What to do\n\nFor each app:\n\n1. Remove the `traceLifecycle: 'static'` pin added in #22590 from every `Sentry.init` (client, server, edge).\n2. Rewrite the specs from transaction envelopes to span v2:\n * `waitForTransaction` becomes `waitForStreamedSpan` / `waitForStreamedSpans`\n * `event.transaction` becomes `span.name`\n * `contexts.trace.op` becomes `getSpanOp(span)` plus `span.is_segment`\n * `contexts.trace.data['x']` becomes `span.attributes['x']`, which has the shape `{ value, type }`\n * `transaction_info.source` becomes the `sentry.segment.name.source` attribute\n3. Streamed child spans arrive across several envelopes, so use `collectStreamedSpans` wherever a test asserts on children of a segment span.\n\nWatch for span names that become low cardinality under streaming (`Pageload`, `Navigation`, `Router`, `HTTP`, and so on). Those assertions have to change, not just the helper.\n\nReference apps: `react-router-7-spa-streaming` and `nextjs-16-streaming`. Worked example: getsentry/sentry-javascript#23797.\n\n## Keep static trace lifecycle coverage\n\nBefore porting this group, duplicate `react-router-7-framework` as-is into `react-router-7-framework-static` and leave that copy on the current transaction-based specs. That keeps the static trace lifecycle covered once the rest of the group moves to streaming.\n\nThe copy is verbatim; only the app name changes:\n\n* `package.json` -> `name`\n* `start-event-proxy.mjs` -> `proxyServerName`\n* every `waitForTransaction` / `waitForError` / `waitForSession` call in `tests/`\n\nKeep `traceLifecycle: 'static'` in the copy's `Sentry.init` calls. The e2e matrix discovers apps by directory, so no CI config change is needed.\n\nThe representative is a suggestion: swap it if another app in the list exercises more of this SDK's instrumentation.","author":{"url":"https://github.com/andreiborza","@type":"Person","name":"andreiborza"},"datePublished":"2026-09-01T09:01:49Z","url":"https://github.com/getsentry/sentry-javascript/issues/23798"}
| 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:ea8dc465-ae96-3e66-9beb-c180db548ad2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D03E:212AFB:80FB82:B02CBF:6B0449EF |
| html-safe-nonce | cfc5805cb67d7df9773bf3c5e02eca289c695c2d44e5bc24d2d698d416a8a6eb |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDNFOjIxMkFGQjo4MEZCODI6QjAyQ0JGOjZCMDQ0OUVGIiwidmlzaXRvcl9pZCI6IjQ2MDY3NTg0OTAxNDM0NzYyMDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | d21fc96e9121beafae499a3d1eabd31e209f0ec7ba0dd03883fa141f02e361a5 |
| hovercard-subject-tag | issue:5309919345 |
| 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/23798/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4ba96158e1f0ab8a3a7d9ac67162a8c7db56f17f3bd6ada200830beb91eefc3b/getsentry/sentry-javascript/issues/23798 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4ba96158e1f0ab8a3a7d9ac67162a8c7db56f17f3bd6ada200830beb91eefc3b/getsentry/sentry-javascript/issues/23798 |
| og:image:alt | Port these E2E test applications to span streaming (17 apps). Apps react-create-browser-router react-create-hash-router react-create-memory-router react-router-5 react-router-6 react-router-6-desce... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | andreiborza |
| hostname | github.com |
| expected-hostname | github.com |
| None | d4495c3631faba668036f176d1f5946901c5172efd73a6edb984029e7d4f8e46 |
| 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 | 9ac4337fb7c6a5846cdfdb1a04f154d3c33ebc77 |
| 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