Skip to content

fix(v10/cloudflare): Auto-instrument classes re-exported from the worker entry - #24181

Draft
JPeer264 wants to merge 1 commit into
v10from
backport-v10-cloudflare-reexport-autoinstrument
Draft

fix(v10/cloudflare): Auto-instrument classes re-exported from the worker entry#24181
JPeer264 wants to merge 1 commit into
v10from
backport-v10-cloudflare-reexport-autoinstrument

Conversation

@JPeer264

@JPeer264 JPeer264 commented Sep 7, 2026

Copy link
Copy Markdown
Member

Backport of: #23282

Differences to the original PR

  • packages/cloudflare/test/vite/autoInstrument.test.ts: the three new agent re-export expectations include enableRpcTracePropagation: opts?.enableRpcTracePropagation ?? true, in the generated __SENTRY_OPTIONS__ snippet. v10 still emits that property, develop does not, so the strings had to match the v10 output (identical to the existing expectation in the same file).
  • packages/cloudflare/src/durableobject.ts, packages/cloudflare/src/workflows.ts: the InstrumentedClass + markAsInstrumented change was applied on top of the v10 generic signatures. v10 does not have the DefaultEnv / ResolveEnv / StrictCloudflareOptions generics refactor, so those signatures stay as they are on v10; the behavior change is the same.
  • dev-packages/cloudflare-integration-tests/runner.ts: receivedEnvelopes.push(envelope) was added next to the v10 wording of the surrounding waiter comment.

The behavior of the fix is unchanged, all deviations are adaptations to the older code shape.

@github-actions

github-actions Bot commented Sep 7, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 27.76 kB added added
@sentry/browser - with treeshaking flags 26.2 kB added added
@sentry/browser (incl. Tracing) 46.62 kB added added
@sentry/browser (incl. Tracing + Span Streaming) 48.41 kB added added
@sentry/browser (incl. Tracing, Profiling) 51.38 kB added added
@sentry/browser (incl. Tracing, Replay) 85.88 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.5 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 90.61 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 103.25 kB added added
@sentry/browser (incl. Feedback) 44.94 kB added added
@sentry/browser (incl. sendFeedback) 32.56 kB added added
@sentry/browser (incl. FeedbackAsync) 37.69 kB added added
@sentry/browser (incl. Metrics) 28.85 kB added added
@sentry/browser (incl. Logs) 29.07 kB added added
@sentry/browser (incl. Metrics & Logs) 29.77 kB added added
@sentry/react 29.57 kB added added
@sentry/react (incl. Tracing) 48.88 kB added added
@sentry/vue 33.18 kB added added
@sentry/vue (incl. Tracing) 48.59 kB added added
@sentry/svelte 27.79 kB added added
CDN Bundle 30.15 kB added added
CDN Bundle (incl. Tracing) 48.58 kB added added
CDN Bundle (incl. Logs, Metrics) 31.73 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) 49.88 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) 71.02 kB added added
CDN Bundle (incl. Tracing, Replay) 86.1 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.41 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 91.9 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 93.18 kB added added
CDN Bundle - uncompressed 89.89 kB added added
CDN Bundle (incl. Tracing) - uncompressed 146.7 kB added added
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.6 kB added added
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 150.68 kB added added
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 219.43 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 266 kB added added
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 269.97 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 279.7 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 283.66 kB added added
@sentry/nextjs (client) 51.43 kB added added
@sentry/sveltekit (client) 47.04 kB added added
@sentry/core/server 80.8 kB added added
@sentry/core/browser 66.95 kB added added
@sentry/node-core 63.33 kB added added
@sentry/node 126.02 kB added added
@sentry/node (incl. diagnostics channel injection) 170.11 kB added added
@sentry/node/import (ESM hook with diagnostics-channel injection) 166 B added added
@sentry/node/light 51.46 kB added added
@sentry/node - without tracing 75 kB added added
@sentry/aws-serverless 84.26 kB added added
@sentry/cloudflare (withSentry) - minified 202.76 kB added added
@sentry/cloudflare (withSentry) 499.38 kB added added

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.

1 participant