feat(v10/cloudflare): Auto-instrument the worker entry with withSentry#22540
Merged
andreiborza merged 1 commit intoJul 23, 2026
Conversation
Contributor
size-limit report 📦
|
andreiborza
force-pushed
the
ab/backport-22422-vite-test-runner
branch
from
July 23, 2026 11:40
e31f0e6 to
80ab6f2
Compare
andreiborza
force-pushed
the
ab/backport-22433-autoinstrument-withsentry
branch
from
July 23, 2026 11:47
fba1699 to
60d87ff
Compare
andreiborza
marked this pull request as ready for review
July 23, 2026 11:51
andreiborza
requested review from
JPeer264 and
isaacs
and removed request for
a team
July 23, 2026 11:51
nicohrubec
approved these changes
Jul 23, 2026
Lms24
approved these changes
Jul 23, 2026
andreiborza
force-pushed
the
ab/backport-22433-autoinstrument-withsentry
branch
from
July 23, 2026 12:03
60d87ff to
3964526
Compare
andreiborza
force-pushed
the
ab/backport-22422-vite-test-runner
branch
from
July 23, 2026 12:35
6de02a8 to
4a4ed95
Compare
andreiborza
force-pushed
the
ab/backport-22433-autoinstrument-withsentry
branch
from
July 23, 2026 12:35
3964526 to
1684122
Compare
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 1684122. Configure here.
| if (!JS_EXTENSION_REGEX.test(normalizedId) || !JS_EXTENSION_REGEX.test(entryFilePath)) return undefined; | ||
| if (normalizedId.replace(JS_EXTENSION_REGEX, '') !== entryFilePath.replace(JS_EXTENSION_REGEX, '')) { | ||
| return undefined; | ||
| } |
There was a problem hiding this comment.
Entry match collapses .ts and .tsx
Medium Severity
Extension-tolerant entry matching strips any JS-like suffix, so a worker main of index.ts also matches a sibling index.tsx. The client-env guard only covers the browser environment; other environments can still transform the wrong file and inject @sentry/cloudflare into it.
Reviewed by Cursor Bugbot for commit 1684122. Configure here.
andreiborza
force-pushed
the
ab/backport-22433-autoinstrument-withsentry
branch
from
July 23, 2026 13:19
1684122 to
248fd65
Compare
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.


Backport of: #22433