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
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.
SvelteKit router spans lose their SvelteKit Route Change name and become Router under streaming, so those assertions have to change. Also watch http.server names.
Reference apps: react-router-7-spa-streaming and nextjs-16-streaming. Worked example: #23797.
Keep static trace lifecycle coverage
Before 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.
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.
Port these E2E test applications to span streaming (6 apps).
Apps
What to do
For each app:
traceLifecycle: 'static'pin added in test(e2e): Disable span streaming in e2e test applications #22590 from everySentry.init(client and server hooks).waitForTransactionbecomeswaitForStreamedSpan/waitForStreamedSpansevent.transactionbecomesspan.namecontexts.trace.opbecomesgetSpanOp(span)plusspan.is_segmentcontexts.trace.data['x']becomesspan.attributes['x'], which has the shape{ value, type }transaction_info.sourcebecomes thesentry.segment.name.sourceattributecollectStreamedSpanswherever a test asserts on children of a segment span.SvelteKit
routerspans lose theirSvelteKit Route Changename and becomeRouterunder streaming, so those assertions have to change. Also watchhttp.servernames.Reference apps:
react-router-7-spa-streamingandnextjs-16-streaming. Worked example: #23797.Keep static trace lifecycle coverage
Before porting this group, duplicate
sveltekit-2as-is intosveltekit-2-staticand 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->namestart-event-proxy.mjs->proxyServerNamewaitForTransaction/waitForError/waitForSessioncall intests/Keep
traceLifecycle: 'static'in the copy'sSentry.initcalls. 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.