Skip to content

test(react-router)!: Add orchestrion based cloudflare app - #23063

Open
chargome wants to merge 1 commit into
developfrom
feat/react-router-cloudflare-orchestrion
Open

test(react-router)!: Add orchestrion based cloudflare app#23063
chargome wants to merge 1 commit into
developfrom
feat/react-router-cloudflare-orchestrion

Conversation

@chargome

@chargome chargome commented Aug 5, 2026

Copy link
Copy Markdown
Member

Adds a new react-router-8-cloudflare e2e app.

ref: #22632

@chargome chargome self-assigned this Aug 5, 2026
@chargome

chargome commented Aug 5, 2026

Copy link
Copy Markdown
Member Author

bugbot run

@cursor cursor Bot 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.

✅ Bugbot reviewed your changes and found no new issues!

Comment @cursor review or bugbot run to trigger another review on this PR

Reviewed by Cursor Bugbot for commit 5fd138c. Configure here.

@github-actions

github-actions Bot commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.34 kB - -
@sentry/browser - with treeshaking flags 28.55 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 26.86 kB - -
@sentry/browser (incl. Tracing) 47.81 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.82 kB - -
@sentry/browser (incl. Tracing, Profiling) 52.55 kB - -
@sentry/browser (incl. Tracing, Replay) 87.19 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 76.62 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 91.91 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 104.56 kB - -
@sentry/browser (incl. Feedback) 47.68 kB - -
@sentry/browser (incl. sendFeedback) 35.17 kB - -
@sentry/browser (incl. FeedbackAsync) 40.34 kB - -
@sentry/browser (incl. Metrics) 31.41 kB - -
@sentry/browser (incl. Logs) 31.66 kB - -
@sentry/browser (incl. Metrics & Logs) 32.32 kB - -
@sentry/react 32.15 kB - -
@sentry/react (incl. Tracing) 50.06 kB - -
@sentry/vue 35.45 kB - -
@sentry/vue (incl. Tracing) 49.82 kB - -
@sentry/svelte 30.37 kB - -
CDN Bundle 32.34 kB - -
CDN Bundle (incl. Tracing) 48.13 kB - -
CDN Bundle (incl. Logs, Metrics) 33.88 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.46 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 73.23 kB - -
CDN Bundle (incl. Tracing, Replay) 85.74 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.02 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.56 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.86 kB - -
CDN Bundle - uncompressed 95.88 kB - -
CDN Bundle (incl. Tracing) - uncompressed 143.58 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.5 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 147.56 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 225.2 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 262.84 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 266.81 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 276.55 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 280.5 kB - -
@sentry/nextjs (client) 52.62 kB - -
@sentry/sveltekit (client) 48.26 kB - -
@sentry/core/server 65.77 kB - -
@sentry/core/browser 51.99 kB - -
@sentry/node 119.41 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 83.39 kB - -
@sentry/aws-serverless 92.72 kB - -
@sentry/cloudflare (withSentry) - minified 214.82 kB - -
@sentry/cloudflare (withSentry) 530.61 kB - -

View base workflow run

@chargome
chargome marked this pull request as ready for review August 6, 2026 11:41
@chargome
chargome requested a review from a team as a code owner August 6, 2026 11:41
@chargome
chargome requested review from JPeer264, andreiborza, nicohrubec and s1gr1d and removed request for a team and s1gr1d August 6, 2026 11:41
@JPeer264

JPeer264 commented Aug 7, 2026

Copy link
Copy Markdown
Member

If I'm not mistaken this PR could be obsolete with #23075. The test wouldn't harm though

@chargome
chargome marked this pull request as draft August 7, 2026 10:34
@chargome
chargome force-pushed the feat/react-router-cloudflare-orchestrion branch from a37f65b to 84189bc Compare August 7, 2026 10:50
Covers React Router on workerd: orchestrion's build-time transform injects the
`diagnostics_channel` publishers and the subscriber registration into the worker
bundle, and `withSentry` picks them up, so a real mysql query emits `db` spans
with no runtime module hook (which workerd can't provide).

Follows Cloudflare's own React Router scaffold — `@cloudflare/vite-plugin`,
`workers/app.ts`, `nodejs_compat`. The nested query covers async-context
restoration across mysql's socket callback.

Ref: #22632

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@chargome
chargome force-pushed the feat/react-router-cloudflare-orchestrion branch from 84189bc to 1f05286 Compare August 7, 2026 12:52
@chargome
chargome marked this pull request as ready for review August 7, 2026 15:25
@chargome chargome changed the title feat(react-router)!: Enable orchestrion instrumentation on Cloudflare test(react-router)!: Add orchestrion based cloudflare app Aug 7, 2026
@chargome

chargome commented Aug 7, 2026

Copy link
Copy Markdown
Member Author

@JPeer264 updated the pr so only the test remains

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.

3 participants