Repository navigation
meta(changelog): Update changelog for 11.18.0 - #26895
Conversation
[Gitflow] Merge master into develop
The bundler plugin warns when `sourcemaps` options conflict. SvelteKit, React Router, Nuxt, Next.js, Gatsby and Nitro apply some of these options themselves and do not pass them to the plugin, so their users get no warning. This PR moves the four warnings from the plugin's `validateOptions` to `warnOnConflictingSourceMapOptions` in `@sentry/core`. The plugin calls it with its own logger, so the plugin output does not change. A follow-up PR calls it from those SDKs after the SDK source map PRs land. E2E: none. Core unit tests cover each case.
…te` (#26333) The SDK no longer deletes maps with a `./public/**/*.map` glob. In the `build-javascript` stage it passes `deleteSourcemapsAfterUpload` and `sdkEnabledSourceMaps` to the webpack plugin, which removes every map that stage emits, CSS maps included, also when no upload runs. The `build-html` maps in `.cache` stay, because Gatsby reads them for HTML render errors. The SDK also supports `sourcemaps.upload`, `injectDebugIds` and `delete` in a nested `sourcemaps` object, as in the other SDKs. `sourcemaps.delete` replaces the flat `deleteSourcemapsAfterUpload`, which still works. Sentry sets `devtool: 'hidden-source-map'` only when it uploads the maps or when `delete: false` keeps them. Fixes: - With `devtool: 'source-map'` and `deleteSourcemapsAfterUpload: true`, removed maps no longer leave `sourceMappingURL` comments behind. The maps are now hidden. - Maps the current build did not emit (from `static/` or an earlier build) are no longer deleted. - The build log no longer says the maps will be deleted when `deleteSourcemapsAfterUpload` is `false`. Still open: - The SDK still replaces every `devtool` except `source-map` and `hidden-source-map`, so a config that turns maps off gets them back. No Gatsby E2E app exists, so unit tests cover this. Gatsby's production default is `devtool: 'source-map'`, so a default build does not change.
…e` (#26584) Nitro uploads the server source maps in its `compiled` hook, after the build, so no bundler plugin reads the new options. The SDK applies them itself: - `upload: false`: creates the release and injects debug IDs when the build has maps, but uploads and deletes nothing. - `injectDebugIds: false`: no debug IDs and no upload. - `delete: true` removes the server maps, also without an upload. `delete: false` keeps them. - With `sourcemap` unset, Sentry turns on hidden maps only when it uploads them or when `delete: false` keeps them. `disable` keeps today's behaviour until v12. The SolidStart PR sits on this one, because SolidStart 2 uses `@sentry/nitro` for its server maps. Fixes: - The release is now created when the build has no `.map` files, with `sourcemap: false` or `'inline'`. The SDK skipped its whole build hook in that case. Still open: - `rewriteSources`, `applicationKey` and `moduleMetadata` are accepted but never applied. - The CLI upload injects debug IDs into the output files in place after the build, so hashes the build computed no longer match.
…e` (#26334) The SDK no longer deletes the maps it turned on with four globs under `./dist`. It passes `deleteSourcemapsAfterUpload` and `sdkEnabledSourceMaps` to the bundler plugin, which removes them from the client, server and prerender output, also when no upload runs. Maps of the Cloudflare Worker in `dist/_worker.js` (Astro 5 adapters) still stay for wrangler. The SDK also passes `sourcemaps.upload`, `injectDebugIds` and `delete` to the plugin. With `vite.build.sourcemap` unset, Sentry turns on hidden maps only when it uploads them or when `delete: false` keeps them. The SDK sets this itself, because Astro fixes the client setting before the plugin's `config` hook runs. Fixes: - Maps no longer stay in the output with a custom `outDir`. The old globs only covered `./dist`. - `.map` files copied from `public/` are no longer deleted. Still open, until the old options are removed in v12: - `disable: true` leaves out the whole Sentry plugin, so release injection, release creation and `bundleSizeOptimizations` stop too. `upload: false` and `injectDebugIds: false` keep the plugin. - `disable: 'disable-upload'` deletes the maps the SDK turned on, so nothing is left for a manual upload. `upload: false` with `delete: false` keeps them. E2E: `astro-7-sourcemaps` gets "no upload" (with a custom `outDir`), "manual upload" and "delete all" variants.
#26338) With the Vite builder, the SDK no longer deletes the client maps it turned on with a glob over the Nitro public dir. It passes `deleteSourcemapsAfterUpload` and `sdkEnabledSourceMaps` to the client Vite plugin, which removes the maps before they are written, also when no upload runs. Server maps stay, because Nitro needs them. The webpack and rspack builders keep the glob. The SDK also supports `sourcemaps.upload`, `injectDebugIds` and `delete`. It applies `delete` itself: on the client through the Vite plugin, on the server through its own globs. The plugin does not get `delete`, because it would also remove the SSR maps. With the source map setting unset, Sentry turns on hidden maps only when it uploads them or when `delete: false` keeps them. Fixes: - `.map` files in the public dir that the client build did not emit (from `public/` or other modules) are no longer deleted. - With `server.builder: 'vite'` (no Nitro), the SDK-enabled client maps are now removed. The old glob never ran there. - With `server.builder: 'vite'`, the SDK now uploads the server maps, applies `delete` to them and injects the release into the server bundle. That server runs no Nitro, so no plugin did this before. Still open, until the old options are removed in v12: - `disable: true` leaves out the Sentry plugins, so release injection, release creation and `bundleSizeOptimizations` stop too. `upload: false` and `injectDebugIds: false` keep them. - `disable: 'disable-upload'` deletes the client and server maps the SDK turned on, so nothing is left for a manual upload. `upload: false` with `delete: false` keeps them. E2E: `nuxt-4-sourcemaps` gets "no upload", "manual upload" and "delete all" variants, and an optional "Vite server" variant. `nuxt-5-sourcemaps` is optional in CI. It gets "no upload" and a variant where Sentry turns the client maps on, and I ran both locally.
## What Use four CI Playwright workers for Next.js E2Es and fix telemetry matching and startup races exposed by concurrent tests. ## Why Use the existing runner cores to shorten the Next.js E2E tail. | E2E step | 1 worker | 4 workers | Saved | |---|---:|---:|---:| | Next.js 14 — production | 1:42 | 1:00 | 42s | | Next.js 14 — development | 1:59 | 1:32 | 27s | | Next.js 15 — production | 1:01 | 0:21 | 40s | | Next.js 15 — development | 1:55 | 1:09 | 46s | | Next.js 16 — Webpack production | 1:43 | 0:33 | 70s | | Next.js latest — Webpack production | 1:44 | 0:32 | 72s | | Next.js 16 — Turbopack production | 1:45 | 0:37 | 68s | | Next.js latest — Turbopack production | 1:49 | 0:33 | 76s | | Next.js 16 — Bun | 1:41 | 0:32 | 69s | | Next.js 16 — Deno | 1:42 | 0:34 | 68s | | Next.js 16 — Cloudflare | 1:40 | 0:41 | 59s | | Next.js 16 — Webpack development | 1:51 | 1:08 | 43s | | Next.js 16 — Turbopack development | 1:39 | 0:54 | 45s | | cacheComponents — Webpack | 2:01 | 1:03 | 58s | | cacheComponents — Turbopack | 1:27 | 0:45 | 42s | With shared preparation held constant at the baseline’s 2:09, the last Next.js E2E job would finish at 4:32 instead of 5:38 after CI starts (66 seconds earlier). --------- Co-authored-by: OpenAI Codex <codex@openai.com>
…26739) closes #26723 closes [JS-4140](https://linear.app/getsentry/issue/JS-4140/sentrycloudflarevite-entrypoints-reached-through-ctxexports-are-not) ## Description This wraps the Worker entrypoints that vinext's Workers Cache adapter adds (`VinextCachedResponse`, `VinextUncachedResponse`) with `withSentry`, so errors thrown while a page renders there are reported. It also adds trace headers to `fetch` calls through `ctx.exports`, like `fetch` calls through `env` bindings, so the request stage and the response stage are one trace. A new `vinext-cf-workers (workers cache)` E2E variant builds the app with the real adapter. ## Wrapping decisions Every named re-export appended to `virtual:cloudflare/worker-entry` is wrapped, and `withSentry` checks at run time if it extends `WorkerEntrypoint`. A static check of the adapter file misses the class expressions and factory-made entrypoints that vinext publishes. ## Known issues - The response-stage span records vinext's internal request data: the `x-vinext-internal-*` headers and the `__vinext_cache_key` query parameter. `x-vinext-internal-dispatch` holds the original request URL with unfiltered query values. Tracked in #26776. --------- Co-authored-by: Cursor agent <cursoragent@cursor.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
## What Bumps `@sentry/conventions` from 0.35.0 to 0.36.0 across all packages and test suites, keeping each file's pin style. ## Why Keeps the SDK on the latest conventions release. 0.36.0 only adds `client.as.number` and `client.as.organization` (`CLIENT_AS_NUMBER`, `CLIENT_AS_ORGANIZATION`) and updates the `sentry.is_remote` description. The SDK doesn't emit either new attribute and nothing was renamed, removed, or deprecated, so no source changes are needed. `dev-packages/e2e-tests/test-applications/node-express-mcp-v2` stays on its separate `0.32.0` pin, since it doesn't follow the shared version. <!-- junior-request-attribution:start --> via [automation `sched_ae2548aa50f44ee9e080350e80e0d775`](https://junior-prod.sentry.dev/automations/sched_ae2548aa50f44ee9e080350e80e0d775) · Run ID `sched_ae2548aa50f44ee9e080350e80e0d775:1795507200000`. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent-dispatch%3Adispatch_d4768abe8a88eb485c235e2e4368086c --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_d4768abe8a88eb485c235e2e4368086c) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_d4768abe8a88eb485c235e2e4368086c/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
…#26641) ## What `@sentry/deno` error stack frames now have a `module`, the same as `@sentry/node`. Also, `post_context` no longer ends with an empty line when the source file ends with a newline. The Deno run of the Node suites no longer excludes the `STACK_FRAMES_DIFFER` group (`contextLines/filename-with-spaces`, `public-api/captureException/catched-error`, `tracing/postgresjs`, `tracing/postgresjs-tracing-channel`). ## Why The Deno stack parser was created without a module resolver. `createGetModuleFromFilename` moves from `@sentry/node` to `@sentry/server-utils`, so both SDKs use one implementation. `@sentry/node` still re-exports it. Deno's ContextLines splits the whole file on `\n`, so a trailing newline added an extra empty line. Node reads files with `readline`, which does not add that line. The other differences in the earlier triage (`?` as the function name, and extra `node:module`/`register.ts` frames in CJS) were extra frames next to the expected ones, not wrong frames, so they need no change. `register.ts` is `in_app` only because the monorepo links `@sentry/server-runtime-injection` from outside `node_modules`. <!-- junior-request-attribution:start --> via @mydea. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3Aa94c25a82de60174d9cf286159571020 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3Aa94c25a82de60174d9cf286159571020) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Aa94c25a82de60174d9cf286159571020/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
## What Drops the `_INTERNAL_` prefix from the managed tunnel helpers in `@sentry/core`, `@sentry/core/server` and `@sentry/server-utils`, and from the tunnel setters that framework build plugins inject (`setTunnelDefaults` on `@sentry/astro/middleware`, `setTunnelBasePath` on `@sentry/react-router`, `setTunnelRoute` on `@sentry/tanstackstart-react`). Removes `_INTERNAL_installTunnelHooks` from `@sentry/node` and `_INTERNAL_getTunnelPaths` from `@sentry/core/server`. ## Why `@sentry/core` and `@sentry/server-utils` are internal packages, so their exports don't need a prefix to warn users off. The framework tunnel setters aren't brittle enough to warrant one either. - `_INTERNAL_installTunnelHooks` was a thin wrapper around server-utils' `instrumentTunnelServers`. It also leaked into every SDK that re-exports `@sentry/node`. Next.js and TanStack Start already depend on `@sentry/server-utils`, so they now call it directly. - `_INTERNAL_getTunnelPaths` had no users outside core. #26744 removes it as well, so the two PRs make the same change to that line. - Nothing else could move or be removed: - `applyBrowserTunnelDefaults` stays on the main `@sentry/core` entry, not `/browser`, because the frameworks' shared `common/tunnel.ts` modules also run at build time and on the server. - The Node handler (`handleServedNodeTunnelRequest`, `setNodeTunnelHandler`, `httpServerHandlesTunnel`) stays in core. It shares the request/response conversion with `handleTunnelRequestIfMatched`, and core's HTTP server instrumentation reads it from the shared tunnel store. - `resetTunnelDefaults` is only used by tests, but tests in five packages need it to reset shared state. <!-- junior-request-attribution:start --> via @mydea. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0C22CSDV6X%3A1795423564.677139 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0C22CSDV6X%3A1795423564.677139) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0C22CSDV6X%3A1795423564.677139/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
## What Bumps test and build tooling in the e2e test apps that isn't what the apps exist to test. Framework, runtime, instrumented-library, `@sentry/*`, Node, and package manager versions are untouched. - `serve` 14.0.1 → 14.2.8: default-browser, effect-3-browser, effect-4-browser, react-17, react-19, react-create-browser-router, react-create-hash-router, react-create-memory-router, react-router-5, react-router-6, react-router-6-descendant-routes, react-router-6-use-routes, react-router-7-lazy-routes, react-router-cross-usage, react-send-to-sentry - `ts-node` 10.9.1 → 10.9.2: ember-classic, ember-embroider, nextjs-14, nextjs-16-sourcemaps, node-fastify-3, nuxt-4-sourcemaps, nuxt-5-sourcemaps, tanstackstart-react-sourcemaps - `tsx` 4.21.0 → 4.23.15: gen-ai-libraries, hono-4, hono-4-legacy - `@tsconfig/node18` 18.2.4 → 18.2.8: ember-classic, ember-embroider - `axios` 1.18.0 → 1.21.1: nestjs-basic - `@astrojs/check` 0.9.2 → 0.9.12: astro-4 - `svelte-check` ^3.6.0 → ^4.7.8: sveltekit-2.5.0-twp - `vite-tsconfig-paths` ^4.2.1 → ^6.1.1: create-remix-app-express, create-remix-app-v2. ^5.1.4 → ^6.1.1: tanstackstart-react, tanstackstart-react-static - `cross-env` ^7.0.3 → ^10.1.0: create-remix-app-express - `concurrently` ^8.2.2 → ^10.0.7: browser-mfe-vite ## Why The apps have no lockfiles, so caret ranges already install the newest version in range. This PR only touches exact pins and major versions. Skipped on purpose: - `@playwright/test` 1.64.1 → 1.65.1: CI requires every package.json to match the `@sentry-internal/test-utils` pin, so this needs a repo-wide bump outside the e2e apps. - `typescript`: coupled to the framework or the TS version an app tests (for example angular-*, generic-ts5.0), and 7.x is a major. - `@types/node`: majors would need typechecks in about 80 apps. Left as-is. - `@types/react`, `@types/react-dom`, `@types/express`, `@types/history`: coupled to the react, express, or history version under test. - `svelte-check` 4 in svelte-5 and sveltekit-2: reports new type errors compared to 3.x. - `vitest` 5 in debug-id-sourcemaps: couldn't verify. The test needs a Sentry auth token, and vitest 5 adds a required `vite` peer. - `@testing-library/jest-dom` 8 in the solidstart apps: needs `vitest` 5 and `@testing-library/dom` peers that the apps don't have. - `isbot` 5 in the Remix apps: the API changed, so `entry.server` would need code changes. - Vite and framework plugins (`@vitejs/*`, `@sveltejs/vite-plugin-svelte`, `@cloudflare/vite-plugin`), `vue-tsc`, `@vue/tsconfig`, `tailwindcss` 4, `eslint` 10 with `eslint-config-next`, and the Hydrogen toolchain (`esbuild` 0.25, `@graphql-codegen/cli`, `@total-typescript/ts-reset`, `@shopify/*`): coupled to the app's vite or framework major. - `rimraf` 6 and `glob` 14 in aws-serverless*, and `concurrently` in nextjs-14-supabase: their e2e runs need SAM or a local Supabase stack, so they couldn't be verified. - `sentry` CLI ~0.44 → 0.50 in the Cloudflare send-to-sentry apps: those tests deploy a real Worker and need credentials. - `zod`: a peer of the AI and MCP SDKs under test. <!-- junior-request-attribution:start --> via [automation `sched_68dc4e007ab3de16e7fbff19505ed2cb`](https://junior-prod.sentry.dev/automations/sched_68dc4e007ab3de16e7fbff19505ed2cb) · Run ID `sched_68dc4e007ab3de16e7fbff19505ed2cb:1795507200000`. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent-dispatch%3Adispatch_65f5ee2612c015bd5244306f895ca4d5 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent-dispatch%3Adispatch_65f5ee2612c015bd5244306f895ca4d5) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent-dispatch%3Adispatch_65f5ee2612c015bd5244306f895ca4d5/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com>
…rces (#26792) ## What On Windows, uploaded source maps now keep forward-slash `sources` again, matching the maps Vite and other bundlers write to disk. ## Why The default `rewriteSources` hook returned `path.relative` output, which uses backslashes on Windows. Since sentry CLI 0.50.0 skips the injection step that used to convert them back, these paths reached the upload and broke path-based features like code mappings. Custom `rewriteSources` hooks are left as they are; normalizing their output too would change behavior for users who rely on it. Closes: #26788 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Similar to #26781 (same on Nuxt) ## What With span streaming (the default), the SolidStart SDK sent a span for every request to its build output under `/_build/`. Now the SDK ignores these requests in both trace modes, also under a base path, and it keeps real routes. | Request | Before, span streaming (default) | Before, static mode | Now, both modes | |---|---|---|---| | Build files that the HTTP integration does not ignore, for example `/_build/assets/app.js.map` | **sent** | not sent | not sent | | All build files on SolidStart 2, also `.js` and `.css` | **sent** | not sent | not sent | | Build files under a base path, for example `/app/_build/assets/app.js.map` | **sent** | **sent** | not sent | | Routes, also ones that contain `_build`, for example `/users/_build/` | sent | sent | sent | "Static mode" is `traceLifecycle: 'static'`. **Bold** marks the problems this PR fixes. ## Why The old filter was an event processor that dropped transactions by name. Event processors do not run with span streaming, so the filter silently stopped working. Now the SDK adds an `ignoreSpans` default on `url.path` instead, which works in both modes. This is the same fix as for Nuxt. The filter needs the base path (`server.baseURL` on SolidStart 1, Vite `base` on SolidStart 2) when `Sentry.init()` runs. SolidStart 2 bundles the SDK into the server build, so the build sets the value there. SolidStart 1 loads `instrument.server.mjs` with `node --import` before the server bundle, so the build now writes the base path into that file too. In development, the server SDK does not know the base path yet, so there the filter only matches `/_build/`. On SolidStart 2, the SDK still sends spans for other static files such as `/favicon.ico`, because Nitro's server spans skip the HTTP integration's static file filter. That needs a separate fix in `@sentry/server-utils`.
…emselves (#26787) #26626 added `warnOnConflictingSourceMapOptions`, but only the bundler plugin calls it, so it only warns about options that reach the plugin. React Router passes none of the user's source map options to the plugin, and SvelteKit, Nuxt and Nitro do not pass `sourcemaps.delete`. In these SDKs, `delete: false` with a user `filesToDeleteAfterUpload` still deletes the matched files, and nothing warns. These SDKs now call the warner with the user's options. Gatsby reads the flat `deleteSourcemapsAfterUpload`, so it logs its own warning when `sourcemaps.delete` is set next to it. The warner now logs each message once per process. Each plugin instance runs it, so Nuxt already printed some warnings twice (from the Vite plugin and the Nitro plugin), and the new SDK calls would add one more. Next.js has the same gap. I'll add it to #26337 so the two PRs don't conflict. No E2E changes. Unit tests cover the other call sites.
…ds` and `delete` (#26336) The SDK no longer builds its own `filesToDeleteAfterUpload` globs, which needed a Vite 8 check and a list of Nitro service directories. It passes `deleteSourcemapsAfterUpload` and `sdkEnabledSourceMaps` per Vite environment, and the bundler plugin removes the maps the SDK turned on, also when no upload runs. The `ssr` Nitro service keeps its maps, because the SDK reads them when Nitro bundles the service again. The SDK also passes `sourcemaps.upload`, `injectDebugIds` and `delete` to the plugin. With the source map setting unset, Sentry turns on hidden maps only when it uploads them or when `delete: false` keeps them. `disable` keeps today's behaviour until v12. Fixes: - On Vite 7, the SDK-enabled `nitro` maps in `.output/server` are now removed. The old globs missed them. Other behaviour changes: - When the SDK turned maps on, an environment output with its own `sourcemap` setting now has its maps removed too. - A user's `filesToDeleteAfterUpload` now runs next to the SDK's deletion instead of replacing it, as in Remix and SolidStart. E2E: `tanstackstart-react-sourcemaps` gets "no upload", "manual upload" and "delete all" variants.
…ypes (#26707) ## What The feedback widget now renders on pages that enforce Trusted Types (`require-trusted-types-for 'script'`). Before, the form failed to render because the logo, success icon and screenshot editor styles were injected via `innerHTML`. ## Why The icons were already built with DOM APIs and only serialized to HTML to be injected again, so rendering them as Preact components (like `IconClose`) and the styles as text removes the sink without needing a Trusted Types policy or any CSP change from users. The old success icon's `clipPath` attribute was invalid and never applied, so I dropped the clip instead of porting it. The new integration suite is skipped for CDN bundles, which lazy load the feedback modal via `script.src`. That needs the `sentry-sdk` policy and comes in a follow-up. Part of #24744 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…nnel event (#26777) ## What Vercel AI `experimental_extract` calls (`ai` >= 7.0.178) now create a `gen_ai.extract` span with model, usage, response model, and, when recording is on, the extraction request (`state`, `fields`, `referenceDate`) as input messages and the `answers` as output messages. ## Why The AI SDK publishes extract calls on the `ai:telemetry` channel as `experimental_extract`, but the subscriber had no case for that type, so those calls produced no spans. The input/output shape mirrors the Workers AI extraction spans so both providers render the same way. The SDK emits a single channel event for extract (no separate model-call event), so this is one span, like `experimental_decide`. Closes: #26761 <!-- junior-request-attribution:start --> via **Rola Abuhasna**. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AD0C848BQ509%3A1795444467.084839 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AD0C848BQ509%3A1795444467.084839) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AD0C848BQ509%3A1795444467.084839/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Rola Abuhasna <rola.abuhasna@sentry.io>
## What - Start Lambda tests after the central SDK build, without waiting for a separate layer-build job. - Each test job restores the compiled SDK, packages its layer ZIP and runs the existing SAM tests. - Keep the central layer producer for release artifacts. - Add Node 24 coverage alongside Node 20 and 22. ## Why Remove a job boundary and layer upload/download from the test path, using the existing layer-building script. | Runtime | Lambda path before | Lambda path after | Finished before | Finished after | |---|---:|---:|---:|---:| | Node 20 | 2:04 | 1:39 | 3:55 | 3:27 | | Node 22 | 2:11 | 1:37 | 4:02 | 3:25 | | Node 24 | — | 1:48 | — | 3:36 | Co-authored-by: OpenAI Codex <codex@openai.com>
## What With span streaming (the default), the Nuxt SDK sent spans for Nuxt's own build files, and the browser's build manifest fetch could make pageloads longer. Now the SDK ignores both in both trace modes, and it keeps real routes that only look like files. | Request | Before, span streaming (default) | Before, `traceLifecycle: 'static'` | Now, both modes | |---|---|---|---| | Common static files, for example `/_nuxt/entry.js`, CSS, images, `/favicon.ico` | not sent | not sent | not sent | | Other build files on the server, for example `/_nuxt/entry.js.map`, `/_nuxt/builds/latest.json` | **sent** | not sent | not sent | | Build manifest fetch in the browser (`/_nuxt/builds/meta/<id>.json`) | **sent, makes the pageload longer** | **sometimes sent, makes the pageload longer** | not sent | | Routes that look like files, for example `/api/data.json` | sent | **not sent** (bug) | sent | | Other files in `public/`, for example `.pdf`, `.txt`, `.webmanifest` | sent | not sent | sent | **Bold** marks the problems this PR fixes. The filters read `app.baseURL` and `app.buildAssetsDir`, so custom build folders and base paths work too. The browser filter matches only the app's own origin, or `app.cdnURL` if it is set, so requests to other hosts keep their spans. ## Why The old filter was an event processor that dropped transactions by name. Event processors do not run with span streaming, so the filter silently stopped working. Now the SDK adds `ignoreSpans` defaults instead, which work in both modes. The new server filter matches only paths that start with the build folder, not every path with a file extension. That keeps routes like `/api/data.json`. But other `public/` files are now also sent in static mode. Filtering those needs the app's list of public files, which can come in a follow-up. The deprecated `autoInjectServerSentry` modes do not get the configured paths, so there the server filter only covers the default `/_nuxt/` folder.
## What `withSentryConfig` now adds the orchestrion code transform to the Nitro server build, so instrumented dependencies get their `diagnostics_channel` publishers without manual setup. `buildTimeInstrumentation: false` turns it off. ## Why Today, apps like Junior import `sentryOrchestrionPlugin` from `@sentry/server-utils/orchestrion/rollup` and push it in their own `rollup:before` hook. This is the bridge until #24900 moves Nitro onto the runtime SDKs' bundler plugins. - **Apps that already add the plugin keep theirs.** Two instances in one build fail it with `Identifier 'orchestrionModuleInjected' has already been declared`. The hook registers at `build:before`, so it sees plugins that other modules add, whichever order the modules are in, and plugins from `rollupConfig.plugins`, including the nested array that `@sentry/node/rollup` returns. - **It is in `withSentryConfig` only, not `setupSentryNitroModule`.** SolidStart calls `setupSentryNitroModule` and already adds the transform as a Vite plugin. - **It skips the `vite` builder.** There, Vite plugins also run on the server build, and a Sentry Vite plugin that adds the transform isn't visible from `rollup:before`. - **Detection is by plugin name.** It matches `code-transformer`, the name the upstream rollup plugin sets, or `sentry-orchestrion-disabled`. The tests use the real plugin, so a rename upstream fails them. Open decision: should Nitro + Vite users get this too? It would need a way to see Vite-level plugins first. #24900 says to hold off on new `@sentry/nitro` features. This one adds no API, and the migration to `sentryRollupPlugin` later stays a drop-in. <!-- junior-request-attribution:start --> via @mydea. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0C22CSDV6X%3A1795509480.764169 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0C22CSDV6X%3A1795509480.764169) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0C22CSDV6X%3A1795509480.764169/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
…ader (#26774) ## What `@sentry/cloudflare` exports `addServerTimingTraceHeader(client)`, like `@sentry/node`. Once a framework SDK turns it on, document responses carry the request's trace in a `Server-Timing` header, so the browser pageload continues the server trace. ## Why On Workers, every pageload started a new trace. The header follows the same rules as on Node: - It is opt-in, so plain Workers apps see no change. - It only goes on HTML documents that no shared cache stores. - An existing `sentry-trace` entry is kept. Solid turns it on in a stacked PR. Closes #26771 Refs JS-4146 Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…Workers (#26791) ## What On Workers, `defineCloudflareOptions` from `@sentry/solid/solid2/cloudflare` turns on `addServerTimingTraceHeader` and adds `solidServerTracePropagationIntegration`, so the browser pageload continues the server trace, as it does on Node. The Solid 2 Cloudflare e2e app now runs its trace propagation test. ## Why Stacked on #26774, which adds `addServerTimingTraceHeader` to `@sentry/cloudflare`. Kept apart so each part is easier to review. Refs JS-4146 --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
) ## What Use six Deno shards and organize the Google GenAI, Pi Durable and OpenAI tool-call suites into flat, named `*.test.ts` files. Large diff but except the shard changes these are just refactors into multiple small files. ## Why Give Vitest smaller, independently scheduled groups while keeping fixtures beside their tests. Existing test cases and assertions are unchanged. | Slowest Deno shard | [Develop](https://github.com/getsentry/sentry-javascript/actions/runs/45366855552) | [This PR](https://github.com/getsentry/sentry-javascript/actions/runs/45377929491) | |---|---:|---:| | Integration test step | 2:54 | **2:29** | | Whole job | 3:38 | **3:11** | --------- Co-authored-by: OpenAI Codex <codex@openai.com>
…6789) ## What The `solid-2-ssr` e2e app uses `sentryVitePlugin` from `@sentry/node/vite`, and a server function runs a `graphql` query. A new test checks that the query gets a `graphql` span in the server function's trace, on Node and on Workers. ## Why There is no Solid-specific Vite plugin: `sentryVitePlugin` covers source maps and orchestrion for Solid 2. This checks that orchestrion instruments a dependency bundled into Solid's server build, so the docs can point Solid 2 users to it. Refs JS-4119 --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
## What Hono 5 apps now get the same Sentry data as Hono 4 apps, both with the default `honoIntegration` and with `sentry(app)` from `@sentry/hono`. When a handler throws a non-Error, the SDK reports the thrown value, not the `Error` that Hono 5 wraps it in. ## Why #25454 and #25552 already fixed route names and connection info on Hono 5. This PR widens the version ranges, so Hono 5 apps get instrumented. The E2E app is added in another PR (already approved). Not in this PR: in Hono 5, `onError` and `notFound` are middleware. So an error thrown in `onError`, or any throw in `notFound`, is now the error that the SDK reports. Refs #25223
## What Adds a `hono-5` E2E app: just a copy of `hono-4` (auto-instrumentation on Node, Bun, Deno and Cloudflare) that installs `hono@^5.0.0-0`. It also tests that a thrown non-Error is reported as the thrown value. ## Why The app is optional and uses a version range, not a pin. So each new Hono 5 rc, and later the stable release, runs in CI without blocking other PRs. Stacked on #26813. Refs #25223
## What Came up in a warden comment but PR was already auto-merged: #26781 (comment) The Nuxt server SDK now also ignores requests for `public/` files with spaces, non-ASCII letters or characters like `%` and `#` in their names, for example `/my file.pdf` or `/café.pdf`. ## Why Spans store the percent-encoded request path (`/my%20file.pdf`), but the public file list from #26781 held the raw file names, so these paths never matched. The SDK now encodes the paths with the same URL parsing that sets `url.path`, so both sides use the same form.
… is not recorded (#26826) closes #26812 closes [JS-4151](https://linear.app/getsentry/issue/JS-4151/mongo-integration-serializes-every-command-even-when-the-span-is-not) ## Description This makes the Mongo integration build `db.query.text` only when the active span records. Without a parent span, or with a parent that is not sampled (for example `tracesSampleRate: 0`), the command is no longer scrubbed and stringified. `scrubStatement` now also uses one loop instead of `Object.entries`/`map`/`reduce`, so it allocates less. The output is the same. FWIW we have something similar in CF: https://github.com/getsentry/sentry-javascript/blob/1f3272889e0d8a70d71c8a74f9648b3db8ec966f/packages/cloudflare/src/instrumentations/instrumentSqlStorage.ts#L45 ## Why The statement was built before the span was started, so each command paid the cost, also when no span was sent. ## Benchmark 20 rounds of 5 parallel `updateOne` calls with a 3 MB nested document, no parent span, `tracesSampleRate: 0`, mongodb 7.1.0: | | ms per round | Peak RSS | |---|---|---| | Sentry off | 76 | 355 MB | | Before | 140 | 590 MB | | After | 74 | 404 MB | Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
…6731) This renames the `@sentry/effect` exports to Effect's naming style and turns the tracer and the logger into layers, so the setup is the same for Effect v3 and v4. The old names are removed. | Old | New | | --- | --- | | `Sentry.effectLayer` | `Sentry.layer` | | `Layer.setTracer(Sentry.SentryEffectTracer)` (v3), `Layer.succeed(Tracer.Tracer, Sentry.SentryEffectTracer)` (v4) | `Sentry.layerTracer` | | `Logger.replace(Logger.defaultLogger, Sentry.SentryEffectLogger)` (v3), `Logger.layer([Sentry.SentryEffectLogger])` (v4) | `Sentry.layerLogger` | | `Sentry.SentryEffectMetricsLayer` | `Sentry.layerMetrics` | | `Sentry.SentryEffectExternalSpanLayer` | `Sentry.layerExternalSpan` | ```ts import * as Sentry from '@sentry/effect'; import { Layer } from 'effect'; const SentryLayer = Layer.mergeAll( Sentry.layer({ dsn: '__DSN__', tracesSampleRate: 1.0 }), Sentry.layerTracer, Sentry.layerLogger, Sentry.layerMetrics, ); ``` ## Why The Effect team recommended these names: `layer` is how Effect modules name their main layer, and Effect names its other layers `layer…` (for example `OtlpSerialization.layerJson`). A raw `Sentry.Logger` export would differ from `Sentry.logger` (the Sentry logs API) only in the case of the first letter. ## Logger decisions `Sentry.layerLogger` adds the Sentry logger to the loggers in place, so Effect still logs to the console. The alternative is to replace the console logger, as the old docs did. ## Known issues - On Effect v4, `Layer.mergeAll` keeps only one of two layers that add a logger, for example `Sentry.layerLogger` and `OtlpLogger.layer`. Stack them with `Layer.provideMerge` instead. Effect's own logger layers behave the same. --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ob characters (#26862) ## What Adds an esbuild fixture with an output file named `widget[id].js` and checks that its source map is uploaded. ## Why Route-based file names like `[id].js` are common, and no test covered them. If the upload reads such a name as a glob pattern, the source maps are silently not uploaded. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
… or Deno (#26844) part of #24840 ## Description This adds `bun` and `deno` export conditions to `@sentry/astro`. When an Astro server build runs on Bun or Deno, the SDK now reports that runtime and uses the `fetch` integration of `@sentry/bun` or `@sentry/deno`. On Bun, it also adds `bunHttpServerIntegration`. `@sentry/bun` and `@sentry/deno` are optional peer dependencies, the same as in `@sentry/nextjs`. ## Why On Bun and Deno, `@sentry/astro` loaded its Node entry. Outgoing `fetch` calls had no spans and no trace headers, and on Bun the requests were not isolated. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…#26848) 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`. Co-authored-by: Claude Fable 5.2 <noreply@anthropic.com>
closes #24840 closes [JS-3841](https://linear.app/getsentry/issue/JS-3841) ## Description This runs the `astro-6` e2e suite on Bun, Deno and Cloudflare as optional variants, from the same app as the Node run. The Cloudflare variant replaces the `astro-6-cf-workers` app. New tests cover parameterized route names, per-request isolation, incoming trace continuation, `sentry-trace` and `baggage` on an outgoing `fetch`, and logs. The MySQL test of `astro-6-cf-workers` now runs on all runtimes. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…ng code (#26861) ## What Adds `sdk/no-unguarded-debug-logs`, which flags `debug.log` / `debug.warn` / `debug.error` calls without a `DEBUG_BUILD` gate in `core` and in the browser-facing packages from `no-unguarded-span-apis` (that map now lives in a shared `utils/browser-facing.js`). Current `develop` has 13 hits. The 6 in browser-reachable code now use `DEBUG_BUILD && debug.x(...)`. `logIgnoredSpan` gets a disable comment because both of its callers already gate it. The 6 in `tunnelForward.ts` and `flushIfServerless.ts` get a file-level disable because those files are server-only, so their logging stays as it is. ## Why Without the gate, the message strings ship in production bundles. This moves the Bugbot rule into Oxlint. The rule accepts `if (DEBUG_BUILD) { ... }`, `DEBUG_BUILD ? ... : ...`, and an early `if (!DEBUG_BUILD) return;` as gates, not just the short-circuit form. Minifiers remove all of them the same way, so requiring `&&` would rewrite the existing `if (DEBUG_BUILD)` blocks (19 in browser-facing code) without saving bytes. The early-return form is why `dsn.ts` and `logSpans.ts` from the original scan don't count as hits. The Bugbot debug rule is removed, including its preference for the short-circuit form, since minifiers drop both forms the same way. All of `core/src` is in scope because the rule can't tell which core files reach a browser bundle. Server-only core files opt out explicitly. Part of #26852 <!-- junior-request-attribution:start --> via @mydea. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3A81510ca5b3cfe4a187e9861dce2a2f57 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3A81510ca5b3cfe4a187e9861dce2a2f57) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3A81510ca5b3cfe4a187e9861dce2a2f57/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
…e/browser (#26876) ## What The `sdk/no-unguarded-span-apis` error message, rule description, and file docs now point at `@sentry/core/browser` again as the place to import the guarded span-start APIs from. ## Why #23762 replaced `@sentry/core/browser` with `@sentry/core` in these strings, so the error told people to import from the same entrypoint it had just flagged. The rule's logic and tests didn't change, so this only fixes the wording. <!-- junior-request-attribution:start --> via @mydea. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0C22CSDV6X%3A1795613804.945249 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0C22CSDV6X%3A1795613804.945249) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0C22CSDV6X%3A1795613804.945249/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
## What Moves the reasoning from Bugbot rules that cannot become a check into comments next to the code, and two policy lines into `AGENTS.md`. ## Why We are moving away from Bugbot, so rules that only live there stop being applied. Next to the code, every reviewer and agent sees them. Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
## What
An E2E test app now says if it needs CI secrets: `"sentryTest": {
"needsSecrets": true }`. Only the jobs of these apps get the secrets.
- PRs from external contributors now run the optional E2E tests that
need no secrets. Before, they ran no optional tests.
- The test apps that call a real LLM API are now required for our own
PRs (were optional before)
**What CI does for each `sentryTest` setting**
<table>
<tr>
<th></th>
<th align="left">No secrets (default)</th>
<th align="left"><code>"needsSecrets": true</code></th>
</tr>
<tr>
<th align="left">Required (default)</th>
<td><b>Our PRs:</b> runs, blocks the merge<br><b>Fork PRs:</b> runs,
blocks the merge</td>
<td><b>Our PRs:</b> runs with secrets, blocks the merge<br><b>Fork
PRs:</b> skipped</td>
</tr>
<tr>
<th align="left"><code>"optional": true</code></th>
<td><b>Our PRs:</b> runs, does not block, results in the PR
comment<br><b>Fork PRs:</b> runs, does not block, a failure is a red
"(optional)" check</td>
<td><b>Our PRs:</b> runs with secrets, does not block, results in the PR
comment<br><b>Fork PRs:</b> skipped</td>
</tr>
</table>
`optionalVariants` of an app count as optional. Dependabot PRs and
release branches skip the jobs with secrets.
**Which tests are in each group**
<table>
<tr>
<th></th>
<th align="left">No secrets</th>
<th align="left">With secrets</th>
</tr>
<tr>
<th align="left">Required</th>
<td><b>274 jobs</b><br>All apps and variants that are not in another
cell</td>
<td><b>9 jobs</b><br><code>cloudflare-mastra</code>,
<code>cloudflare-pi-durable</code>, <code>cloudflare-think</code>,
<code>gen-ai-libraries</code>, <code>node-eve</code>,
<code>node-flue</code>, <code>node-mastra</code>,
<code>node-openai-decisions</code>, <code>node-pi-durable</code></td>
</tr>
<tr>
<th align="left">Optional</th>
<td><b>56 jobs</b><br>Apps: <code>astro-7</code>, <code>hono-5</code>,
<code>nuxt-5*</code>, <code>solidstart-2*</code>,
<code>node-express-mcp-v*</code>, <code>node-fastify-6</code>,
<code>cloudflare-agent</code>, <code>nextjs-14-supabase</code>,
<code>react-router-7-framework-instrumentation</code>,
<code>tanstackstart-react-cloudflare</code>,
<code>tanstackstart-react-sourcemaps</code><br>Variants: <code>*
(bun)</code>, <code>* (deno)</code>, <code>* (cloudflare*)</code> except
<code>gen-ai-libraries (cloudflare)</code>, <code>nextjs-15
(latest)</code>, <code>nextjs-15 (turbo)</code>, <code>nextjs-16
(vinext*)</code>, <code>nuxt-4-sourcemaps (Vite server)</code>,
<code>tanstackstart-react (latest)</code>, <code>vinext-cf-workers
(workers cache)</code>, <code>vue-3 (no Options API)</code>, <code>deno
(latest)</code></td>
<td><b>18 jobs</b><br>Apps: <code>*-send-to-sentry</code>,
<code>debug-id-sourcemaps</code><br>Variants of the required apps with
secrets: <code>* (latest)</code>, <code>node-eve (*)</code>,
<code>gen-ai-libraries (cloudflare)</code>, <code>cloudflare-think (ai
v6)</code></td>
</tr>
</table>
## Why
Every optional E2E job got all CI secrets, and external contributions
did not run any of optional tests.
But most optional apps need no secrets: they test a prerelease of a
framework or another runtime.
Notes for the review:
- Apps with the flag get all E2E secrets, as every optional job does
today. An array of secrets per app would also be possible but too much
overhead for now.
- On a PR from a contributor, a failed optional test is a red check, not
a PR comment, because the token of a conributor PR cannot write a
comment. The check is not part of the required checks.
…ntation check (#26886) ## What The "sends exactly one http.server segment per request" check in `react-router-7-framework-instrumentation` now requests its own route, `/performance/single-segment`, and only collects `http.server` segments for that path. ## Why The check collected every `http.server` segment that the event proxy received. Since #26772 moved the React Router E2E apps to four workers, it also picks up segments from other tests that request `/performance` at the same time, including the bare `GET` segment of the `/performance` → `/performance/` 301. A duplicate segment from double instrumentation has the same `url.path`, so filtering on the path still catches it. <!-- junior-request-attribution:start --> via @mydea. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0C22CSDV6X%3A1795618028.548659 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0C22CSDV6X%3A1795618028.548659) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0C22CSDV6X%3A1795618028.548659/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
## What The check from #26854, that every docker-compose service has a healthcheck, now runs as one static test (`suites/docker-compose.test.ts`). The test parses the compose files with `yaml` instead of running `docker compose config` before every Docker suite. `yaml` is a new devDependency of node-integration-tests. It was already in the lockfile as a transitive dependency. ## Why The per-suite `docker compose config` spawn could hit its 10s timeout on a slow runner. When it did, it failed the suite with an empty error ([job](https://github.com/getsentry/sentry-javascript/actions/runs/45631694816/job/139267746094)). Linting a YAML file doesn't need Docker. A static test also runs once instead of once per suite, and it names the file that's wrong. Part of #26852 <!-- junior-request-attribution:start --> via @mydea. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:agent%3Ad72f31cba93f4e84e882d2b860cda943 --> -- [View Session](https://junior-prod.sentry.dev/conversations/agent%3Ad72f31cba93f4e84e882d2b860cda943) [[Sentry]](https://sentry.sentry.io/explore/conversations/agent%3Ad72f31cba93f4e84e882d2b860cda943/?project=4510944073809921) <!-- junior-session-footer:end --> --------- Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Francesco Gringl-Novy <2411343+mydea@users.noreply.github.com>
## What Vercel AI `experimental_extract` spans now record their input and output messages in the shape that Cloudflare Workers AI already records for Clairic. File data in the state is replaced with `[Blob substitute]`. ## Why The `gen_ai.extract` schemas in getsentry/sentry-conventions#832 and getsentry/sentry-conventions#835 describe the Clairic request and response. Before this change, Vercel AI recorded the AI SDK's own shape, so the product could not read it. ## State mapping ```mermaid flowchart LR S["AI SDK state"] --> K{"Shape"} K -->|"string"| T1["one text part"] K -->|"JSON object"| J1["one JSON part"] K -->|"array of parts"| P["each part in order"] T1 --> TXT J1 --> TXT P -->|"text part"| TXT["append text, remember its offset"] P -->|"JSON part"| JS["stringify value"] --> TXT P -->|"image file part"| IMG["images: [Blob substitute]"] P -->|"PDF file part"| DOC["documents: [Blob substitute]"] TXT --> ST["state: texts joined with a blank line"] A["AI SDK answer source"] --> SK{"source.type"} SK -->|"text: part, start, end"| SP["span: offset of part + start, offset of part + end<br/>source: input"] SK -->|"file, part is an image"| SI["source: image"] SK -->|"file, part is a PDF"| SN["no source"] ``` ## Sentry traces Node script that calls `experimental_extract` on a mock Clairic model, with a state of two text parts and one image. [Before](https://sentry-sdks.sentry.io/explore/traces/trace/37a15b4563bd4fef80ab0f5607d907cb/?node=span-a0d1a2ba84388c45&targetId=a0d1a2ba84388c45), `@sentry/node@11.16.0` records no extract span (released versions do not have the extract instrumentation yet): <img width="1568" height="77" alt="trace-before-extract-shape" src="https://github.com/user-attachments/assets/df1995fb-a4ec-45a3-b478-de9fcdf9df21" /> [After](https://sentry-sdks.sentry.io/explore/traces/trace/2fa9b0e227164b4f8eb9d4d9e87bf908/?node=span-ad8c8a4067c07a75&targetId=ad8c8a4067c07a75), the extraction view shows the joined state with the answer spans highlighted: <img width="1327" height="702" alt="trace-after-extract-shape" src="https://github.com/user-attachments/assets/09fd4746-e8aa-48a8-88bc-3b835611b929" /> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
…out upload credentials (#26841) When the user sets no source map option, Sentry turns on hidden source maps so the bundler plugin can upload them. Astro, Nuxt and TanStack Start skip this when the auth token, org or project is missing, because the plugin uploads nothing without them. Next.js, Remix, SvelteKit and Gatsby still turned maps on, so a build without credentials wrote map files that nothing uploaded. These four now skip it too. `sourcemaps.delete: false` still turns maps on for a manual upload. The check moves into `@sentry/bundler-plugins/core` and shares the plugin's own credential rules. It also reads `.env.sentry-build-plugin`, because Next.js decides before it creates the plugin, and the plugin is what loads that file. React Router is left out because it uploads with the Sentry CLI, which also reads `.sentryclirc`, stored login tokens and `SENTRY_DSN`. SolidStart follows after #26335. The no-upload variant of `remix-sourcemaps` covers a build without credentials.
The feedback package shipped `*.css.js` files that `@vanilla-extract/vite-plugin` tried to compile as stylesheets and failed the build, fixed by renaming them to `*.styles.ts`. Nothing should be importing these so a rename is fine. This regressed after rolldown migration because it dropped `preserveModules`. closes #26839
## What Bumps `@sentry/rrweb`, `@sentry/rrweb-snapshot` and `@sentry/rrweb-types` from 2.46.2 to 2.47.0. ## Why 2.47.0 adds a `getTrustedScriptURL` option to rrweb's `CanvasManager` (getsentry/rrweb#367), so the next SDK release can pick it up. <!-- junior-request-attribution:start --> via @msonnb. <!-- junior-request-attribution:end --> <!-- junior-session-footer:start --> <!-- junior-conversation-id:slack%3AC0C5DRTAU2X%3A1795616155.465319 --> -- [View Session](https://junior-prod.sentry.dev/conversations/slack%3AC0C5DRTAU2X%3A1795616155.465319) [[Sentry]](https://sentry.sentry.io/explore/conversations/slack%3AC0C5DRTAU2X%3A1795616155.465319/?project=4510944073809921) <!-- junior-session-footer:end --> Co-authored-by: sentry-junior[bot] <264270552+sentry-junior[bot]@users.noreply.github.com> Co-authored-by: Martin Sonnberger <26038247+msonnb@users.noreply.github.com>
After looking at our own data, `environment` doesn't seem like a critically valuable information to capture or justify the hash change with it. It isn't noisy which is nice but it also indicates that it doesn't matter. Right now I think we've settled on really good shape for the cachable object, and it seems follow this theme: > given the same options, does this value change what the SDK does? So with this in mind, I think we should drop the `environment` as well from the cachable object.
…holders in SDK config (#26838) SDK config reports turned `NaN` and `Infinity` into `null` which can lose information related to numeric bugs the user can supply to the SDK like to the sample rates. Additionally, the `initialScope` can make the hash unique per user as it often contains arbitrary context values like user id or timestamps. So we instead describe its shape, alternatively we can drop it. This falls under our "does this value change the behavior of the SDK?".
Co-Authored-By: OpenAI GPT-6 <codex@openai.com>
Co-Authored-By: OpenAI GPT-6 <codex@openai.com>
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes using default effort 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 a74f369. Configure here.
| }); | ||
|
|
||
| test('captures endpoint error', async ({ page }) => { | ||
| const errorEventPromise = waitForError('astro-6', errorEvent => { |
There was a problem hiding this comment.
Cloudflare error events still require server_name
Medium Severity
The SSR error assertion still requires server_name on every runtime, while the new comment says Cloudflare events have no server name (the same reason app/device/os and cookies are omitted). toMatchObject then fails when that field is absent, so the astro-6 (cloudflare) run rejects a valid error payload. The old Cloudflare-only suite did not assert server_name.
Reviewed by Cursor Bugbot for commit a74f369. Configure here.
Optional E2E testsSome optional checks were not successful. They do not block the merge. 1 not successful, 76 successful. See the run.
Successful checks
|
size-limit report 📦Compared: 32b28e4 (PR test merge using master at feeea3c) Against: a77fbae (master) · base run #67632
|


What
Prepare the 11.18.0 release notes for the changes merged since 11.17.0.
Why
Publish the changes merged since 11.17.0. Per the release guide, this PR targets
masterand must be merged with a merge commit to trigger release preparation.