GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — fix(astro): Report the Astro SDK name with the Cloudflare Vite plugin by JPeer264 · Pull Request #26848 · getsentry/sentry-javascript

Conversation

@JPeer264

@JPeer264 JPeer264 commented Nov 25, 2026

Copy link
Copy Markdown
Member

part of #24840

Description

This makes @sentry/astro report sentry.javascript.astro when the app uses sentryCloudflareVitePlugin() from @sentry/cloudflare/vite. The Astro middleware sets the name on the client and keeps @sentry/cloudflare in the SDK packages.

Why

With that plugin, @sentry/cloudflare inits the client, so events had the SDK name sentry.javascript.cloudflare. The other Cloudflare setups of @sentry/astro already report the Astro name (#26302).

SDK name decisions

The middleware sets the name at request time, the same as nestIntegration() does in its setup. The alternative is a build-time change that gives the metadata to the withSentry wrap of @sentry/cloudflare/vite.

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@JPeer264
JPeer264 added this pull request to stack #26849 November 25, 2026 08:02
@github-actions

github-actions Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

size-limit report 📦

Compared: fa3d73a (PR test merge using develop at 1b863a9)

Against: cee40e6 (develop) · base run #67873

⚠️ Baseline mismatch: 2 develop commit(s) in the PR build are missing from the baseline; 1 develop commit(s) in the baseline are missing from the PR build. Their size changes also affect this comparison. Compare commits. Rebase your PR onto the latest develop to compare against an up-to-date baseline.

Path Size % Change Change
@sentry/browser 30.54 kB - -
@sentry/browser - with treeshaking flags 28.73 kB - -
@sentry/browser - with treeshaking flags tracing without tracing 28.6 kB - -
@sentry/browser (incl. Tracing) 53.67 kB - -
@sentry/browser (incl. Tracing Core) 40.59 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 53.67 kB - -
@sentry/browser (incl. Tracing, Profiling) 56.57 kB - -
@sentry/browser (incl. Tracing, Replay) 93.6 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 82.46 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 98.43 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 111.4 kB - -
@sentry/browser (incl. Feedback) 48.4 kB - -
@sentry/browser (incl. sendFeedback) 31.11 kB - -
@sentry/browser (incl. FeedbackAsync) 36.17 kB - -
@sentry/browser (incl. Metrics) 31.86 kB - -
@sentry/browser (incl. Logs) 32.13 kB - -
@sentry/browser (incl. Metrics & Logs) 32.8 kB - -
@sentry/react 32.56 kB - -
@sentry/react (incl. Tracing) 56.38 kB - -
@sentry/vue 38.75 kB - -
@sentry/vue (incl. Tracing) 56.68 kB - -
@sentry/svelte 30.57 kB - -
@sentry/effect (client) 42.25 kB +0.08% +33 B 🔺
@sentry/effect (client, incl. Tracing) 54.97 kB +0.02% +7 B 🔺
@sentry/effect (client, incl. Tracing, Logs, Metrics) 66.35 kB +0.07% +43 B 🔺
@sentry/remix (Remix 3 client bundle) 59.39 kB - -
CDN Bundle 32.54 kB - -
CDN Bundle (incl. Tracing) 54.15 kB - -
CDN Bundle (incl. Logs, Metrics) 35.27 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 56.63 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 76.22 kB - -
CDN Bundle (incl. Tracing, Replay) 91.94 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 94.47 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 97.39 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 99.86 kB - -
CDN Bundle - uncompressed 94.92 kB - -
CDN Bundle (incl. Tracing) - uncompressed 160.25 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 103.26 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 167.88 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 233.61 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 280.65 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 288.28 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 292.58 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 300.2 kB - -
@sentry/nextjs (client) 60.09 kB - -
@sentry/sveltekit (client) 55.03 kB - -
@sentry/core/server 45.83 kB - -
@sentry/core/browser 14.46 kB - -
@sentry/node 156.94 kB +0.01% +3 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 83.45 kB - -
@sentry/node - without tracing 89.81 kB - -
@sentry/node - without channel injection 145.89 kB +0.01% +3 B 🔺
@sentry/aws-serverless 100.44 kB -0.01% -1 B 🔽
@sentry/cloudflare (withSentry) - minified 211.93 kB - -
@sentry/cloudflare (withSentry) 491.77 kB - -
@sentry/cloudflare (withSentry, instrumented CommonJS package) - minified 214.88 kB - -
@sentry/nextjs/cloudflare (withSentry) - minified 237.17 kB - -

View base workflow run

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@github-actions

github-actions Bot commented Nov 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

Optional E2E tests

All optional checks were successful. 2 successful. See the run.

Successful checks
Check Status
✅ CI: Optional E2E Tests / E2E astro-7 Test (optional) Successful in 1m Details
✅ CI: Optional E2E Tests / E2E astro-7 (static trace lifecycle) Test (optional) Successful in 1m Details
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@JPeer264
JPeer264 force-pushed the jp/astro-cloudflare-sdk-name branch from 6a1d884 to 652168c Compare November 25, 2026 08:13
@JPeer264
JPeer264 force-pushed the jp/astro-cloudflare-sdk-name branch from 652168c to 1f035be Compare November 25, 2026 08:26
@JPeer264 JPeer264 self-assigned this Nov 25, 2026
@JPeer264 @claude
fix(astro): Report the Astro SDK name with the Cloudflare Vite plugin
a9acbbb
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 <[email protected]>
@JPeer264
JPeer264 force-pushed the jp/astro-cloudflare-sdk-name branch from 1f035be to a9acbbb Compare November 25, 2026 08:46
@JPeer264
JPeer264 marked this pull request as ready for review November 25, 2026 09:57
@javascript-sdk-gitflow
javascript-sdk-gitflow Bot requested review from chargome, nicohrubec and s1gr1d November 25, 2026 09:57
nicohrubec
nicohrubec approved these changes Nov 25, 2026
View reviewed changes
@JPeer264
JPeer264 merged commit 300e09c into develop Nov 25, 2026
119 checks passed

Uh oh!

There was an error while loading. Please reload this page.

@JPeer264
JPeer264 deleted the jp/astro-cloudflare-sdk-name branch November 25, 2026 13:16
@sentry-release-bot sentry-release-bot Bot mentioned this pull request Nov 25, 2026
publish: getsentry/[email protected] getsentry/publish#10573
Closed
51 tasks done
@JPeer264 JPeer264 mentioned this pull request Nov 26, 2026
fix(tanstackstart-react): Report the TanStack Start SDK name with the Cloudflare Vite plugin #26925
Merged
andreiborza pushed a commit that referenced this pull request Nov 27, 2026
@JPeer264 @claude
fix(tanstackstart-react): Report the TanStack Start SDK name with the…
d799281
… Cloudflare Vite plugin (#26925)

part of #24839

## Description

This makes `@sentry/tanstackstart-react` report
`sentry.javascript.tanstackstart-react` when the app uses
`sentryCloudflareVitePlugin()` from `@sentry/cloudflare/vite`.
`wrapFetchWithSentry` sets the name on the client and keeps
`@sentry/cloudflare` in the SDK packages.

## Why

With that plugin, `@sentry/cloudflare` inits the client, so events had
the SDK name `sentry.javascript.cloudflare`. On Node, events already
have the TanStack Start name.

## SDK name decisions

`wrapFetchWithSentry` sets the name at request time, the same as the
`@sentry/astro` middleware does (#26848). The alternative is a
build-time change that gives the metadata to the `withSentry` wrap of
`@sentry/cloudflare/vite`.

Co-authored-by: Claude Fable 5.2 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@nicohrubec nicohrubec nicohrubec approved these changes
@chargome chargome Awaiting requested review from chargome
@s1gr1d s1gr1d Awaiting requested review from s1gr1d

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@JPeer264 JPeer264

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@JPeer264 @nicohrubec
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.