feat(v10/cloudflare): Auto-instrument Durable Object classes#22541
feat(v10/cloudflare): Auto-instrument Durable Object classes#22541andreiborza wants to merge 1 commit into
Conversation
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit 2de5e1c. Configure here.
| 'declaration found in the worker entry (re-exports from other modules cannot be wrapped ' + | ||
| 'automatically). Wrap them manually with the matching `instrument*WithSentry` helper.', | ||
| ); | ||
| } |
There was a problem hiding this comment.
False warning on re-exported DO
Medium Severity
Build-time missing-class detection treats any wrangler-configured Durable Object not listed in wrappedClasses as uninstrumented. When the entry only re-exports a class that was already wrapped with instrumentDurableObjectWithSentry in another module (import { Counter } from './counter' then export { Counter }, or export { Counter } from './counter'), the transform correctly skips wrapping but never records the class as wrapped, so Vite still emits a “Could not auto-instrument … Wrap them manually” warning for a already-instrumented export.
Additional Locations (2)
Reviewed by Cursor Bugbot for commit 2de5e1c. Configure here.
size-limit report 📦
|


Backport of: #22437