Title: Port SvelteKit E2E test apps to span streaming · Issue #23808 · getsentry/sentry-javascript · GitHub
Open Graph Title: Port SvelteKit E2E test apps to span streaming · Issue #23808 · getsentry/sentry-javascript
X Title: Port SvelteKit E2E test apps to span streaming · Issue #23808 · getsentry/sentry-javascript
Description: Port these E2E test applications to span streaming (6 apps). Apps sveltekit-2 sveltekit-2-kit-tracing sveltekit-2-svelte-5 sveltekit-2.5.0-twp sveltekit-3 sveltekit-cloudflare-pages What to do For each app: Remove the traceLifecycle: 'st...
Open Graph Description: Port these E2E test applications to span streaming (6 apps). Apps sveltekit-2 sveltekit-2-kit-tracing sveltekit-2-svelte-5 sveltekit-2.5.0-twp sveltekit-3 sveltekit-cloudflare-pages What to do For ...
X Description: Port these E2E test applications to span streaming (6 apps). Apps sveltekit-2 sveltekit-2-kit-tracing sveltekit-2-svelte-5 sveltekit-2.5.0-twp sveltekit-3 sveltekit-cloudflare-pages What to do For ...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/23808
X: @github
Domain: github.com
IPv4 address: 140.82.112.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Port SvelteKit E2E test apps to span streaming","articleBody":"Port these E2E test applications to span streaming (6 apps).\n\n## Apps\n\n* sveltekit-2\n* sveltekit-2-kit-tracing\n* sveltekit-2-svelte-5\n* sveltekit-2.5.0-twp\n* sveltekit-3\n* sveltekit-cloudflare-pages\n\n## What to do\n\nFor each app:\n\n1. Remove the `traceLifecycle: 'static'` pin added in #22590 from every `Sentry.init` (client and server hooks).\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\nSvelteKit `router` spans lose their `SvelteKit Route Change` name and become `Router` under streaming, so those assertions have to change. Also watch `http.server` names.\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 `sveltekit-2` as-is into `sveltekit-2-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:33Z","url":"https://github.com/getsentry/sentry-javascript/issues/23808"}
| 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:2ff5747b-5557-b2b0-acfd-6dc2892b0070 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BF38:2DFC9:215668:2EA379:6B0438FD |
| html-safe-nonce | 474a2f0e5ebd0e034877f92b41c6546538ec79e28dc7f0a5e81aeee9b5bedc39 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRjM4OjJERkM5OjIxNTY2ODoyRUEzNzk6NkIwNDM4RkQiLCJ2aXNpdG9yX2lkIjoiODExOTAxNDQwNzg2NDA3MjQ0NSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 7cee0b43c4851353a706b551350c2e9a05e4df1bb3628797987235829e912178 |
| hovercard-subject-tag | issue:5309934518 |
| 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/23808/issue_layout |
| twitter:image | https://opengraph.githubassets.com/c624eb74b95b88e69b9c42183ca08679bb4d1477ae9d0c9e6710bfa7371bbc15/getsentry/sentry-javascript/issues/23808 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/c624eb74b95b88e69b9c42183ca08679bb4d1477ae9d0c9e6710bfa7371bbc15/getsentry/sentry-javascript/issues/23808 |
| og:image:alt | Port these E2E test applications to span streaming (6 apps). Apps sveltekit-2 sveltekit-2-kit-tracing sveltekit-2-svelte-5 sveltekit-2.5.0-twp sveltekit-3 sveltekit-cloudflare-pages What to do For ... |
| 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