Repository navigation
fix(astro): Report the Astro SDK name with the Cloudflare Vite plugin - #26848
Merged
Merged
Conversation
Contributor
size-limit report 📦Compared: fa3d73a (PR test merge using develop at 1b863a9) Against: cee40e6 (develop) · base run #67873
|
Contributor
Optional E2E testsAll optional checks were successful. 2 successful. See the run. |
JPeer264
force-pushed
the
jp/astro-cloudflare-sdk-name
branch
from
November 25, 2026 08:13
6a1d884 to
652168c
Compare
JPeer264
force-pushed
the
jp/astro-cloudflare-sdk-name
branch
from
November 25, 2026 08:26
652168c to
1f035be
Compare
With sentryCloudflareVitePlugin() of @sentry/cloudflare/vite, @sentry/astro adds no Worker wrap and no init of its own, so @sentry/cloudflare inits the client and events had the SDK name sentry.javascript.cloudflare. The other Cloudflare setups of @sentry/astro already report sentry.javascript.astro. The Astro middleware now sets the Astro SDK name on a client that has another name, and keeps the package of that SDK in the list, like the NestJS integration does. Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
JPeer264
force-pushed
the
jp/astro-cloudflare-sdk-name
branch
from
November 25, 2026 08:46
1f035be to
a9acbbb
Compare
JPeer264
marked this pull request as ready for review
November 25, 2026 09:57
javascript-sdk-gitflow
Bot
requested review from
chargome,
nicohrubec and
s1gr1d
November 25, 2026 09:57
nicohrubec
approved these changes
Nov 25, 2026
51 tasks done
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.
part of #24840
Description
This makes
@sentry/astroreportsentry.javascript.astrowhen the app usessentryCloudflareVitePlugin()from@sentry/cloudflare/vite. The Astro middleware sets the name on the client and keeps@sentry/cloudflarein the SDK packages.Why
With that plugin,
@sentry/cloudflareinits the client, so events had the SDK namesentry.javascript.cloudflare. The other Cloudflare setups of@sentry/astroalready report the Astro name (#26302).SDK name decisions
The middleware sets the name at request time, the same as
nestIntegration()does in itssetup. The alternative is a build-time change that gives the metadata to thewithSentrywrap of@sentry/cloudflare/vite.