You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
cloudflare: Build-time instrumentation does not run in vite dev #25765
With sentryCloudflareVitePlugin, integrations added at build time (e.g. hono, graphql, ai, @anthropic-ai/sdk) send no spans in vite dev. Runtime instrumentation such as D1 works.
Two causes:
Vite's dependency optimizer pre-bundles these packages into node_modules/.vite/deps_*/, and the orchestrion transform does not run on optimized deps.
When a package is excluded from optimizeDeps, the transform runs but matches nothing: in dev, module ids end with ?v=<hash>, and the file matcher compares paths exactly.
With optimizeDeps.exclude and the query removed from the id, dev sends hono and graphql spans. Excluding ai is not possible, because its CJS deps then fail with module is not defined.
Node + Vite is not affected, because Vite SSR dev does not pre-bundle deps.
Activity
linear-code commentedon Oct 27, 2026
JS-4010
fix(cloudflare): Run build-time instrumentation in vite dev (#25777)
fix(server-utils): Instrument deps excluded from the Vite dep optimiz…
github-actions commentedon Nov 16, 2026
A PR closing this issue has just been released 🚀
This issue was referenced by PR #26264, which was included in the 11.13.0 release.