Skip to content

test(e2e): Port React E2E test apps to span streaming - #23849

Merged
andreiborza merged 2 commits into
ab/js-3483/static-coveragefrom
ab/js-3483/port-to-streaming
Sep 2, 2026
Merged

test(e2e): Port React E2E test apps to span streaming#23849
andreiborza merged 2 commits into
ab/js-3483/static-coveragefrom
ab/js-3483/port-to-streaming

Conversation

@andreiborza

@andreiborza andreiborza commented Sep 1, 2026

Copy link
Copy Markdown
Member

What

Ports create-react-app, lighthouse-react, react-17, react-19 and react-send-to-sentry to span streaming.

Why

Span streaming is the default now, so the E2E suite has to exercise it. react-send-to-sentry needed more than a helper swap: pageload and navigation segments never become transaction events under streaming, so the app records them from beforeSendSpan and the trace lookup matches a span id rather than a transaction event id. That lookup runs against real Sentry, so CI is what confirms the shape. react-19 keeps its specs unchanged, since they only cover error handling and the profiler.

Closes: #23799

Removes the `traceLifecycle: 'static'` pin from `create-react-app`,
`lighthouse-react`, `react-17`, `react-19` and `react-send-to-sentry`, and
rewrites the `react-17` specs against streamed span v2.

`react-send-to-sentry` needed more than a helper swap. Pageload and navigation
segments never become transaction events under streaming, so the app records
them from `beforeSendSpan` instead of the event processor, and the trace lookup
matches a span id rather than a transaction event id.

`react-19` keeps its specs unchanged: they only cover error handling and the
profiler, neither of which depends on the trace lifecycle.
@linear-code

linear-code Bot commented Sep 1, 2026

Copy link
Copy Markdown

JS-3483

@github-actions

github-actions Bot commented Sep 1, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 28.56 kB -0.05% -13 B 🔽
@sentry/browser - with treeshaking flags 26.92 kB -0.06% -14 B 🔽
@sentry/browser - with treeshaking flags tracing without tracing 26.82 kB -0.05% -12 B 🔽
@sentry/browser (incl. Tracing) 48.86 kB -0.03% -11 B 🔽
@sentry/browser (incl. Tracing + Span Streaming) 48.87 kB -0.03% -11 B 🔽
@sentry/browser (incl. Tracing, Profiling) 51.79 kB -0.03% -13 B 🔽
@sentry/browser (incl. Tracing, Replay) 88.35 kB -0.02% -12 B 🔽
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 77.75 kB -0.02% -14 B 🔽
@sentry/browser (incl. Tracing, Replay with Canvas) 93.04 kB -0.02% -13 B 🔽
@sentry/browser (incl. Tracing, Replay, Feedback) 106 kB -0.02% -13 B 🔽
@sentry/browser (incl. Feedback) 46.05 kB -0.04% -14 B 🔽
@sentry/browser (incl. sendFeedback) 33.62 kB -0.04% -13 B 🔽
@sentry/browser (incl. FeedbackAsync) 38.73 kB -0.04% -14 B 🔽
@sentry/browser (incl. Metrics) 29.51 kB -0.06% -16 B 🔽
@sentry/browser (incl. Logs) 29.8 kB -0.05% -12 B 🔽
@sentry/browser (incl. Metrics & Logs) 30.43 kB -0.05% -14 B 🔽
@sentry/react 30.3 kB -0.05% -13 B 🔽
@sentry/react (incl. Tracing) 51.06 kB -0.04% -18 B 🔽
@sentry/vue 35.73 kB -0.04% -13 B 🔽
@sentry/vue (incl. Tracing) 51.13 kB -0.03% -15 B 🔽
@sentry/svelte 28.59 kB -0.05% -12 B 🔽
CDN Bundle 30.35 kB -0.05% -14 B 🔽
CDN Bundle (incl. Tracing) 49.5 kB -0.03% -13 B 🔽
CDN Bundle (incl. Logs, Metrics) 32.58 kB -0.05% -15 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) 51.41 kB -0.03% -14 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) 73.17 kB -0.02% -14 B 🔽
CDN Bundle (incl. Tracing, Replay) 87 kB -0.02% -12 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 88.86 kB -0.02% -13 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) 92.93 kB -0.02% -13 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 94.83 kB -0.02% -12 B 🔽
CDN Bundle - uncompressed 89.95 kB -0.03% -22 B 🔽
CDN Bundle (incl. Tracing) - uncompressed 147.56 kB -0.02% -22 B 🔽
CDN Bundle (incl. Logs, Metrics) - uncompressed 96.24 kB -0.03% -22 B 🔽
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 153.25 kB -0.02% -22 B 🔽
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.41 kB -0.01% -22 B 🔽
CDN Bundle (incl. Tracing, Replay) - uncompressed 267.05 kB -0.01% -22 B 🔽
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 272.73 kB -0.01% -22 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 280.75 kB -0.01% -22 B 🔽
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 286.42 kB -0.01% -22 B 🔽
@sentry/nextjs (client) 53.68 kB -0.03% -16 B 🔽
@sentry/sveltekit (client) 49.29 kB -0.03% -13 B 🔽
@sentry/core/server 40.72 kB - -
@sentry/core/browser 13.42 kB - -
@sentry/node 123.83 kB +0.01% +5 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 81.4 kB - -
@sentry/node - without tracing 88.13 kB +0.02% +13 B 🔺
@sentry/node - without channel injection 103.26 kB +0.01% +7 B 🔺
@sentry/aws-serverless 96.48 kB +0.02% +10 B 🔺
@sentry/cloudflare (withSentry) - minified 201.21 kB -0.02% -22 B 🔽
@sentry/cloudflare (withSentry) 500.7 kB -0.05% -249 B 🔽

View base workflow run

Matching `event_id` against the recorded span id never resolved, so both span
lookups polled for the full three minutes. The trace is already unique to the
pageload or navigation under test, so the op identifies the segment within it
without depending on which field carries the span id. Log the trace's item
shapes once when the op is missing, so a repeat failure is diagnosable.
@andreiborza
andreiborza marked this pull request as ready for review September 2, 2026 11:20
@andreiborza
andreiborza merged commit 738bf4e into develop Sep 2, 2026
44 of 45 checks passed
@andreiborza
andreiborza deleted the ab/js-3483/port-to-streaming branch September 2, 2026 11:27

@Lms24 Lms24 Sep 2, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm curious if this will introduce new flakes, given that there's also no guarantee on the backend that all spans of a trace arrive at once. But probably fine to leave as-is for now and revisit when it comes to flakes.

If it flakes, we likely can't stop polling on the first success response from the API but rather again continue with the requests until a condition is met.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Port React E2E test apps to span streaming

3 participants