Skip to content

feat(cloudflare)!: Enable build-time instrumentation by default in Vite plugin - #22950

Merged
chargome merged 3 commits into
developfrom
charlygomez/js-3205-cloudflare-meta-sdk-auto-wiring
Aug 3, 2026
Merged

feat(cloudflare)!: Enable build-time instrumentation by default in Vite plugin#22950
chargome merged 3 commits into
developfrom
charlygomez/js-3205-cloudflare-meta-sdk-auto-wiring

Conversation

@chargome

@chargome chargome commented Aug 3, 2026

Copy link
Copy Markdown
Member

Enables orchestrion build-time instrumentation by default in the @sentry/cloudflare Vite plugin, matching the other metaframework SDKs. sentryCloudflareVitePlugin() now instruments supported dependencies (e.g. mysql) with zero config; opt out via buildTimeInstrumentation: false.

Replaces the experimental _experimental.useDiagnosticsChannelInjection flag.

Ref: #22764

…te plugin

Enables orchestrion build-time instrumentation by default in the
@sentry/cloudflare Vite plugin, matching the other metaframework SDKs.
sentryCloudflareVitePlugin() now instruments supported dependencies (e.g.
mysql) with zero config; opt out via buildTimeInstrumentation: false.

Replaces the experimental _experimental.useDiagnosticsChannelInjection flag.

Ref: #22764

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@linear-code

linear-code Bot commented Aug 3, 2026

Copy link
Copy Markdown

JS-3205

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

chargome commented Aug 3, 2026

Copy link
Copy Markdown
Member Author

buglitzer moch

@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 70d7e7a. Configure here.

@github-actions

github-actions Bot commented Aug 3, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 29.91 kB - -
@sentry/browser - with treeshaking flags 28.11 kB - -
@sentry/browser (incl. Tracing) 47.35 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.36 kB - -
@sentry/browser (incl. Tracing, Profiling) 52.13 kB - -
@sentry/browser (incl. Tracing, Replay) 86.69 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 76.13 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 91.41 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 104.05 kB - -
@sentry/browser (incl. Feedback) 47.22 kB - -
@sentry/browser (incl. sendFeedback) 34.76 kB - -
@sentry/browser (incl. FeedbackAsync) 39.86 kB - -
@sentry/browser (incl. Metrics) 30.99 kB - -
@sentry/browser (incl. Logs) 31.22 kB - -
@sentry/browser (incl. Metrics & Logs) 31.89 kB - -
@sentry/react 31.73 kB - -
@sentry/react (incl. Tracing) 49.61 kB - -
@sentry/vue 34.98 kB - -
@sentry/vue (incl. Tracing) 49.34 kB - -
@sentry/svelte 29.94 kB - -
CDN Bundle 32 kB - -
CDN Bundle (incl. Tracing) 47.72 kB - -
CDN Bundle (incl. Logs, Metrics) 33.55 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.08 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 72.89 kB - -
CDN Bundle (incl. Tracing, Replay) 85.35 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.65 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.14 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.45 kB - -
CDN Bundle - uncompressed 95.5 kB - -
CDN Bundle (incl. Tracing) - uncompressed 143.08 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 100.21 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 147.06 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 224.97 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 262.34 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 266.3 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 276.04 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 280 kB - -
@sentry/nextjs (client) 52.2 kB - -
@sentry/sveltekit (client) 47.8 kB - -
@sentry/core/server 80 kB - -
@sentry/core/browser 51.96 kB - -
@sentry/node 120.88 kB - -
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 84.26 kB - -
@sentry/aws-serverless 92.92 kB - -
@sentry/cloudflare (withSentry) - minified 219.34 kB - -
@sentry/cloudflare (withSentry) 540.44 kB - -

View base workflow run

@chargome
chargome marked this pull request as ready for review August 3, 2026 12:29
@chargome
chargome requested a review from a team as a code owner August 3, 2026 12:29
@chargome
chargome requested review from JPeer264, andreiborza and mydea and removed request for a team and mydea August 3, 2026 12:29

@JPeer264 JPeer264 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.

m: There should be some cloudflare-integration-tests which still have the vite.config.mts and the experimental config.

It seems the type tests are not triggered well enough - I'll change that in a future PR

@chargome

chargome commented Aug 3, 2026

Copy link
Copy Markdown
Member Author

@JPeer264 fixed, but typechecking .mts in all cloudflare integration tests shuold still be done in a follow up, some unrelated errors appreared there

@chargome
chargome requested a review from JPeer264 August 3, 2026 13:30
Renaming to .ts broke the build: `@cloudflare/vite-plugin` is ESM-only and a
`.ts` vite config is loaded via `require` here, so the extension must stay
`.mts`. Drop only the now-removed `_experimental.useDiagnosticsChannelInjection`
option; typecheck coverage for `.mts` configs is a separate follow-up.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@chargome
chargome merged commit 87db4d2 into develop Aug 3, 2026
79 checks passed
@chargome
chargome deleted the charlygomez/js-3205-cloudflare-meta-sdk-auto-wiring branch August 3, 2026 14:14
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