Title: Port Astro E2E test apps to span streaming · Issue #23809 · getsentry/sentry-javascript · GitHub
Open Graph Title: Port Astro E2E test apps to span streaming · Issue #23809 · getsentry/sentry-javascript
X Title: Port Astro E2E test apps to span streaming · Issue #23809 · getsentry/sentry-javascript
Description: Port these E2E test applications to span streaming (6 apps). Apps astro-4 astro-5 astro-5-cf-workers astro-6 astro-6-cf-workers astro-7 astro-7-orchestrion carries no traceLifecycle pin; check it while you are here. What to do For each a...
Open Graph Description: Port these E2E test applications to span streaming (6 apps). Apps astro-4 astro-5 astro-5-cf-workers astro-6 astro-6-cf-workers astro-7 astro-7-orchestrion carries no traceLifecycle pin; check it w...
X Description: Port these E2E test applications to span streaming (6 apps). Apps astro-4 astro-5 astro-5-cf-workers astro-6 astro-6-cf-workers astro-7 astro-7-orchestrion carries no traceLifecycle pin; check it w...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/23809
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Port Astro E2E test apps to span streaming","articleBody":"Port these E2E test applications to span streaming (6 apps).\n\n## Apps\n\n* astro-4\n* astro-5\n* astro-5-cf-workers\n* astro-6\n* astro-6-cf-workers\n* astro-7\n\n`astro-7-orchestrion` carries no `traceLifecycle` pin; check it while you are here.\n\n## What to do\n\nFor each app:\n\n1. Remove the `traceLifecycle: 'static'` pin added in #22590 from `sentry.client.config.js` and `sentry.server.config.js`.\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 the low-cardinality names for `http.server` and `http.client` spans.\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 `astro-7` as-is into `astro-7-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:03:42Z","url":"https://github.com/getsentry/sentry-javascript/issues/23809"}
| 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:b2fd7a37-3c7f-19d5-a649-b7a284ee3c09 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 82AA:1FCE:47D439:6498C2:6B043F4C |
| html-safe-nonce | e6f1d9a3d1950cdc9f9a26b9d5b064948d13fd88b8e9374cd3d1b608c3e9bd23 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4MkFBOjFGQ0U6NDdENDM5OjY0OThDMjo2QjA0M0Y0QyIsInZpc2l0b3JfaWQiOiIzMzgxMTQxNjk2MjI5NDI0OTcyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 04b13fc3ec06d6dac6182cbcafadebfefe225238c5c87571846e00d28f13ec23 |
| hovercard-subject-tag | issue:5309936149 |
| 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/23809/issue_layout |
| twitter:image | https://opengraph.githubassets.com/9b1bc194694098741a387e967f79a8af326559a1ec58279171a0f87b21321c4f/getsentry/sentry-javascript/issues/23809 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/9b1bc194694098741a387e967f79a8af326559a1ec58279171a0f87b21321c4f/getsentry/sentry-javascript/issues/23809 |
| og:image:alt | Port these E2E test applications to span streaming (6 apps). Apps astro-4 astro-5 astro-5-cf-workers astro-6 astro-6-cf-workers astro-7 astro-7-orchestrion carries no traceLifecycle pin; check it w... |
| 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 | 9185ccfefd80c1ff2d9ddcdb0cd2becf46b5a1efbbf30741a895e4bb8de25e64 |
| 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 | 06dc448a76fe4751ac1db26524aefa3aa3e889a8 |
| 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