Title: Port NestJS E2E test apps to span streaming · Issue #23801 · getsentry/sentry-javascript · GitHub
Open Graph Title: Port NestJS E2E test apps to span streaming · Issue #23801 · getsentry/sentry-javascript
X Title: Port NestJS E2E test apps to span streaming · Issue #23801 · getsentry/sentry-javascript
Description: Port these E2E test applications to span streaming (13 apps). Apps nestjs-8 nestjs-11 nestjs-12 nestjs-basic nestjs-basic-with-graphql nestjs-bullmq nestjs-distributed-tracing nestjs-fastify nestjs-graphql nestjs-microservices nestjs-web...
Open Graph Description: Port these E2E test applications to span streaming (13 apps). Apps nestjs-8 nestjs-11 nestjs-12 nestjs-basic nestjs-basic-with-graphql nestjs-bullmq nestjs-distributed-tracing nestjs-fastify nestjs...
X Description: Port these E2E test applications to span streaming (13 apps). Apps nestjs-8 nestjs-11 nestjs-12 nestjs-basic nestjs-basic-with-graphql nestjs-bullmq nestjs-distributed-tracing nestjs-fastify nestjs...
Opengraph URL: https://github.com/getsentry/sentry-javascript/issues/23801
X: @github
Domain: github.com
IPv4 address: 140.82.113.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Port NestJS E2E test apps to span streaming","articleBody":"Port these E2E test applications to span streaming (13 apps).\n\n## Apps\n\n* nestjs-8\n* nestjs-11\n* nestjs-12\n* nestjs-basic\n* nestjs-basic-with-graphql\n* nestjs-bullmq\n* nestjs-distributed-tracing\n* nestjs-fastify\n* nestjs-graphql\n* nestjs-microservices\n* nestjs-websockets\n* nestjs-with-submodules\n* nestjs-with-submodules-decorator\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\nMost of these specs assert on child spans (span decorator, cron decorator, graphql, bullmq), so `collectStreamedSpans` is the main tool here. Also watch the low-cardinality names for `http.server`, `graphql` and messaging spans.\n\nReference app: `nextjs-16-streaming`. Worked example: getsentry/sentry-javascript#23797.\n\n## Keep static trace lifecycle coverage\n\nBefore porting this group, duplicate `nestjs-11` as-is into `nestjs-11-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:02:21Z","url":"https://github.com/getsentry/sentry-javascript/issues/23801"}
| 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:67e580e9-9c55-c78a-768f-f826a6bd9a74 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | EC7C:681B3:1F5D9:2B279:6B043008 |
| html-safe-nonce | 622553c4e635a46d69bd1adfdd5d7396dc41991423f5af99576674093291a55c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQzdDOjY4MUIzOjFGNUQ5OjJCMjc5OjZCMDQzMDA4IiwidmlzaXRvcl9pZCI6IjcyNTU5MzAzNTIwNzA5NDI4MCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 3b809563beca88dfee70310faca6a5524de940fa5b4ad0e9162289e4d4a39fe6 |
| hovercard-subject-tag | issue:5309923913 |
| 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/23801/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4e40f7ab8eb6ef4a75a83d129797e2729be38743af90e68e5a1bc5ba7c2c9fb1/getsentry/sentry-javascript/issues/23801 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4e40f7ab8eb6ef4a75a83d129797e2729be38743af90e68e5a1bc5ba7c2c9fb1/getsentry/sentry-javascript/issues/23801 |
| og:image:alt | Port these E2E test applications to span streaming (13 apps). Apps nestjs-8 nestjs-11 nestjs-12 nestjs-basic nestjs-basic-with-graphql nestjs-bullmq nestjs-distributed-tracing nestjs-fastify nestjs... |
| 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 | b7a1d2b9101496921b08579fbee988d014345aef2f5bd660d1f8c7332d81560e |
| 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 | c3dd496c3da6ea6b77e69c09279d2b81604654f1 |
| 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