Skip to content

test(e2e): Add span streaming test app for React Router 7 SPA - #20677

Merged
nicohrubec merged 9 commits into
developfrom
feat/react-19-span-streaming-e2e
May 5, 2026
Merged

test(e2e): Add span streaming test app for React Router 7 SPA#20677
nicohrubec merged 9 commits into
developfrom
feat/react-19-span-streaming-e2e

Conversation

@nicohrubec

@nicohrubecnicohrubec commented May 5, 2026

Copy link
Copy Markdown
Member

Adds a react-router-7-spa-streaming E2E test app that mirrors react-router-7-spa with spanStreamingIntegration() enabled. Converts the waitForTransaction tests (pageload, navigation, transactionName) to use waitForStreamedSpan and carries over the INP span and error tests.

Closes#20671

nicohrubecand others added 3 commits May 5, 2026 14:48
Closes#20671
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@github-actions

github-actionsBot commented May 5, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

PathSize% ChangeChange
@sentry/browser26.3 kB--
@sentry/browser - with treeshaking flags24.78 kB--
@sentry/browser (incl. Tracing)44.17 kB--
@sentry/browser (incl. Tracing + Span Streaming)46.39 kB--
@sentry/browser (incl. Tracing, Profiling)49.14 kB--
@sentry/browser (incl. Tracing, Replay)83.55 kB--
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags73.01 kB--
@sentry/browser (incl. Tracing, Replay with Canvas)88.23 kB--
@sentry/browser (incl. Tracing, Replay, Feedback)100.84 kB--
@sentry/browser (incl. Feedback)43.44 kB--
@sentry/browser (incl. sendFeedback)31.11 kB--
@sentry/browser (incl. FeedbackAsync)36.19 kB--
@sentry/browser (incl. Metrics)27.6 kB--
@sentry/browser (incl. Logs)27.73 kB--
@sentry/browser (incl. Metrics & Logs)28.43 kB--
@sentry/react28.04 kB--
@sentry/react (incl. Tracing)46.4 kB--
@sentry/vue31.18 kB--
@sentry/vue (incl. Tracing)46.02 kB--
@sentry/svelte26.32 kB--
CDN Bundle28.91 kB--
CDN Bundle (incl. Tracing)46.94 kB--
CDN Bundle (incl. Logs, Metrics)30.34 kB--
CDN Bundle (incl. Tracing, Logs, Metrics)48.04 kB--
CDN Bundle (incl. Replay, Logs, Metrics)69.4 kB--
CDN Bundle (incl. Tracing, Replay)84.07 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics)85.15 kB--
CDN Bundle (incl. Tracing, Replay, Feedback)89.89 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics)90.97 kB--
CDN Bundle - uncompressed84.88 kB--
CDN Bundle (incl. Tracing) - uncompressed140.44 kB--
CDN Bundle (incl. Logs, Metrics) - uncompressed89.08 kB--
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed143.9 kB--
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed212.99 kB--
CDN Bundle (incl. Tracing, Replay) - uncompressed258.24 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed261.69 kB--
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed271.94 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed275.38 kB--
@sentry/nextjs (client)48.9 kB--
@sentry/sveltekit (client)44.64 kB--
@sentry/node-core59.81 kB+0.02%+9 B 🔺
@sentry/node163.43 kB+0.01%+7 B 🔺
@sentry/node - without tracing72.28 kB+0.01%+7 B 🔺
@sentry/aws-serverless106.95 kB+0.01%+6 B 🔺
@sentry/cloudflare (withSentry) - minified166.9 kB--
@sentry/cloudflare (withSentry)421.79 kB--

View base workflow run

Without it no pageload span is created, so spanStreamingIntegration
has nothing to stream.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nicohrubec
nicohrubec marked this pull request as ready for review May 5, 2026 13:26
@nicohrubec
nicohrubec requested a review from chargomeMay 5, 2026 13:26

@chargomechargome left a comment

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.

LGTM but I think one of the react router (library) test apps would have more tests in here. At least a navigation test would be great IMO.

Switch to react-router-7-spa as the base app for React span streaming
tests. This gives us pageload, navigation, and INP span tests instead
of just error handling.
Closes#20671
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nicohrubecnicohrubec changed the title test(e2e): Add span streaming test app for React 19test(e2e): Add span streaming test app for React Router 7 SPAMay 5, 2026
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nicohrubec

Copy link
Copy Markdown
MemberAuthor

@chargome updated to use the react-router-spa-7 test app as base

…ames
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

@cursorcursorBot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 1 potential issue.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 201a7e0. Configure here.

nicohrubecand others added 2 commits May 5, 2026 16:05
…nvelopeItem
The old filter item[0].type === 'span' would match streamed pageload
spans first, causing the test to resolve with the wrong data.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@nicohrubec
nicohrubec merged commit 748d8cc into developMay 5, 2026
749 of 759 checks passed
@nicohrubec
nicohrubec deleted the feat/react-19-span-streaming-e2e branch May 5, 2026 15:37
Sign up for freeto 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.

Add React span streaming app

2 participants

@nicohrubec@chargome