Repository navigation
Description
Port these E2E test applications to span streaming (10 apps).
cloudflare-workers-streaming already runs on span streaming and is the reference.
Apps
- cloudflare-agent
- cloudflare-autoinstrument
- cloudflare-local-workers
- cloudflare-mcp
- cloudflare-mcp-agent
- cloudflare-orchestrion-mysql
- cloudflare-vercelai-v7
- cloudflare-workers
- cloudflare-workers-workflow-legacy
- cloudflare-workersentrypoint
What to do
For each app:
- Remove the
traceLifecycle: 'static'pin added in test(e2e): Disable span streaming in e2e test applications #22590 from everySentry.init. Several of these apps init Sentry in more than one place insrc/index.ts. - Rewrite the specs from transaction envelopes to span v2:
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.sourceattribute
- Streamed child spans arrive across several envelopes, so use
collectStreamedSpanswherever a test asserts on children of a segment span.
Watch the low-cardinality names for http.server, D1 db spans and the MCP server and notification spans.
Reference app: cloudflare-workers-streaming. Worked example: #23797.
Keep static trace lifecycle coverage
Before porting this group, duplicate cloudflare-workers as-is into cloudflare-workers-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->namestart-event-proxy.mjs->proxyServerName- every
waitForTransaction/waitForError/waitForSessioncall intests/
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-3487
test(e2e): Port cloudflare-workers-workflow-legacy to span streaming (#…
github-actions commentedon Sep 23, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #23864, which was included in the 11.0.0 release.