You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Port NestJS E2E test apps to span streaming #23801
contexts.trace.op becomes getSpanOp(span) plus span.is_segment
contexts.trace.data['x'] becomes span.attributes['x'], which has the shape { value, type }
transaction_info.source becomes the sentry.segment.name.source attribute
Streamed child spans arrive across several envelopes, so use collectStreamedSpans wherever a test asserts on children of a segment span.
Most 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.
Reference app: nextjs-16-streaming. Worked example: #23797.
Keep static trace lifecycle coverage
Before 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.
The copy is verbatim; only the app name changes:
package.json -> name
start-event-proxy.mjs -> proxyServerName
every waitForTransaction / waitForError / waitForSession call in tests/
Keep traceLifecycle: 'static' in the copy's Sentry.init calls. The e2e matrix discovers apps by directory, so no CI config change is needed.
The representative is a suggestion: swap it if another app in the list exercises more of this SDK's instrumentation.
Activity
linear-code commentedon Sep 1, 2026
JS-3485
test(e2e): Add `nestjs-11-static` E2E app (#24095)
test(e2e): Port the nestjs-11 E2E app to span streaming (#24096)
test(e2e): Port the nestjs-graphql E2E app to span streaming (#24101)
test(e2e): Use the existing streamed-span helpers in the nestjs-11 sp…
test(e2e): Port the nestjs-websockets E2E app to span streaming (#24103)
test(e2e): Port the nestjs-fastify E2E app to span streaming (#24100)
test(e2e): Port the nestjs-with-submodules-decorator E2E app to span …
test(e2e): Port the nestjs-basic-with-graphql E2E app to span streami…
test(e2e): Port the nestjs-8 E2E app to span streaming (#24097)
test(e2e): Port the nestjs-microservices E2E app to span streaming (#…
test(e2e): Port the nestjs-bullmq E2E app to span streaming (#24107)
test(e2e): Port the nestjs-basic E2E app to span streaming (#24099)
test(e2e): Port the nestjs-12 E2E app to span streaming (#24098)
test(e2e): Tell the two nestjs-basic interceptor specs traces apart (#…
test(e2e): Port the nestjs-distributed-tracing E2E app to span stream…
test(e2e): Port the nestjs-with-submodules E2E app to span streaming (#…