Repository navigation
Conversation
Contributor
size-limit report 📦Compared: f5e9cf1 (PR test merge using develop at 30efdc0) Against: 30efdc0 (develop) · base run #67537 ✅ Baseline matches: this diff contains only this PR's changes.
|
Contributor
Optional E2E testsSome optional checks were not successful. They do not block the merge. 1 not successful, 64 successful. See the run.
Successful checks
|
vinext's Workers Cache adapter appends `VinextCachedResponse` and `VinextUncachedResponse` to the worker-entry module of `@cloudflare/vite-plugin`. The default export renders pages through `ctx.exports`, in an invocation that never ran `Sentry.init`, so page errors were not reported. The auto-instrument plugin now wraps every named re-export appended to that module with `withSentry`. `withSentry` checks at run time whether the value extends `WorkerEntrypoint` and returns any other value unchanged, which also covers entrypoints that an adapter builds with a factory. The plugin runs as a `post` plugin, so it sees the appended exports in any plugin order. The new `vinext-cf-workers (workers cache)` E2E variant builds the app with the adapter and checks that a page render error is reported. Co-Authored-By: Cursor agent <cursoragent@cursor.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JPeer264
force-pushed
the
fix/cloudflare-ctx-exports-entrypoints
branch
from
November 23, 2026 10:51
e377d4e to
2dc667b
Compare
chargome
approved these changes
Nov 23, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
closes #26723
closes JS-4140
Description
This wraps the Worker entrypoints that vinext's Workers Cache adapter adds (
VinextCachedResponse,VinextUncachedResponse) withwithSentry, so errors thrown while a page renders there are reported. It also adds trace headers tofetchcalls throughctx.exports, likefetchcalls throughenvbindings, so the request stage and the response stage are one trace. A newvinext-cf-workers (workers cache)E2E variant builds the app with the real adapter.Wrapping decisions
Every named re-export appended to
virtual:cloudflare/worker-entryis wrapped, andwithSentrychecks at run time if it extendsWorkerEntrypoint. A static check of the adapter file misses the class expressions and factory-made entrypoints that vinext publishes.Known issues
x-vinext-internal-*headers and the__vinext_cache_keyquery parameter.x-vinext-internal-dispatchholds the original request URL with unfiltered query values. Tracked in @sentry/cloudflare: vinext response-stage span records vinext's internal request data #26776.