Important Changes
-
feat(effect)!: Rename exports and add layers for tracing and logs (#26731)
The
@sentry/effectexports now use Effect's naming style, and tracing and logs are now layers, so the setup is the same for Effect v3 and v4. The old names are removed.effectLayeris nowlayer.SentryEffectTraceris nowlayerTracer. It replacesLayer.setTracer(SentryEffectTracer)(Effect v3) andLayer.succeed(Tracer.Tracer, SentryEffectTracer)(Effect v4).SentryEffectLoggeris nowlayerLogger. It replacesLogger.replace(Logger.defaultLogger, SentryEffectLogger)(Effect v3) andLogger.layer([SentryEffectLogger])(Effect v4). It keeps the loggers in place, so Effect still logs to the console.SentryEffectMetricsLayeris nowlayerMetrics.SentryEffectExternalSpanLayeris nowlayerExternalSpan.
const SentryLayer = Layer.mergeAll( Sentry.layer({ dsn: '__DSN__', tracesSampleRate: 1.0 }), Sentry.layerTracer, Sentry.layerLogger, Sentry.layerMetrics, );
Other Changes
- chore(deps): Bump rrweb to 2.47.0 (#26837, #26883)
- feat(astro): Support
sourcemaps.upload,injectDebugIdsanddelete(#26334) - feat(astro): Use the Bun and Deno integrations when Astro runs on Bun or Deno (#26844)
- feat(cloudflare): Send the trace to the browser in a Server-Timing header (#26774)
- feat(core): Report a browser runtime in SDK config (#26834)
- feat(core): Share the source map option warnings with the SDKs (#26626)
- feat(gatsby): Support
sourcemaps.upload,injectDebugIdsanddelete(#26333) - feat(hono): Support Hono 5 (#26813)
- feat(nextjs): Support
sourcemaps.upload,injectDebugIdsanddelete(#26337) - feat(nitro): Add the orchestrion plugin to the server build (#26799)
- feat(nitro): Support
sourcemaps.upload,injectDebugIdsanddelete(#26584) - feat(node): Improve module detection in
modulesIntegration(#26637) - feat(nuxt): Capture errors caught by
<NuxtErrorBoundary>during SSR (#26815) - feat(nuxt): Set up Cloudflare from
sentry.cloudflare.config.ts(#26754) - feat(nuxt): Support
sourcemaps.upload,injectDebugIdsanddelete(#26338) - feat(server-utils): Instrument the Vercel AI experimental_extract channel event (#26777)
- feat(server-utils): normalize Vercel AI
gen_ai.extractspans (#26831) - feat(solid): Continue the server trace in the pageload on Cloudflare Workers (#26791)
- feat(solidstart): Support
sourcemaps.upload,injectDebugIdsanddelete(#26335) - feat(tanstackstart-react): Support
sourcemaps.upload,injectDebugIdsanddelete(#26336) - fix: Warn about conflicting source map options that the SDKs apply themselves (#26787)
- fix(astro): Report the Astro SDK name with the Cloudflare Vite plugin (#26848)
- fix(bundler-plugins): Use forward slashes in rewritten source map sources (#26792)
- fix(cloudflare): wrap Worker entrypoints reached through ctx.exports (#26739)
- fix(core): Exclude environment from SDK configuration reports (#26835)
- fix(core): Report non-finite numbers and initialScope values as placeholders in SDK config (#26838)
- fix(deno): Fill module and trim trailing context line in stack frames (#26641)
- fix(effect): Report a failure once when the Sentry layer is provided twice (#26734)
- fix(feedback): Rename
*.css.tsstyle modules to*.styles.ts(#26842) - fix(feedback): Render feedback widget without innerHTML for Trusted Types (#26707)
- fix(hono): Skip middleware spans for Hono 5 error and not-found handlers (#26827)
- fix(langchain): Record finish reasons for the OpenAI Responses API (#26800)
- fix(nextjs, remix, sveltekit, gatsby): Don't turn on source maps without upload credentials (#26841)
- fix(nuxt): Ignore build output spans with span streaming (#26781)
- fix(nuxt): Percent-encode public file paths for the span filter (#26817)
- fix(remix, tanstackstart-react): Let a user's
filesToDeleteAfterUploadreplace the SDK's deletion (#26821) - fix(server-utils): Skip MongoDB statement serialization when the span is not recorded (#26826)
- fix(solidstart): Ignore build output spans with span streaming (#26782)
Internal Changes
- chore: Add external contributor to CHANGELOG.md (#26857)
- chore: Keep Bugbot rule notes next to the code (#26875)
- chore(deps): Bump
@sentry/conventionsto 0.36.0 (#26796) - chore(e2e): Bump non-critical e2e test app dependencies (#26797)
- chore(lint): Forbid non-null assertions in SDK source (#26856)
- chore(lint): Move mechanical Bugbot rules to lint and the test runner (#26854)
- chore(lint): Point no-unguarded-span-apis message back at @sentry/core/browser (#26876)
- chore(lint): Require a DEBUG_BUILD gate on debug logs in browser-facing code (#26861)
- ci: Key Playwright browser cache by runner architecture (#26833)
- ci: Run repo script tests (#26832)
- ci(e2e): Only give secrets to E2E test apps that need them (#26869)
- ci(size-limit): Simplify the size-limit action (#26778)
- fix(test): Stop waiting for a port when a scenario exits (#26846)
- perf(ci): Build Lambda layers within E2E jobs (#26804)
- perf(ci): Separate Next.js cacheComponents production and development tests (#26830)
- perf(ci): Split large integration suites and use six Deno shards (#26802)
- perf(ci): Use four workers for Next.js E2E tests (#26763)
- perf(ci): Use three WebKit browser integration shards (#26829)
- ref(core): Drop the internal prefix from tunnel exports (#26746)
- ref(core): Drop unused internal exports and rename log/metric capture helpers (#26744)
- test(bundler-plugins): Cover source map upload for file names with glob characters (#26862)
- test(e2e): Add Hono 5 E2E app (#26814)
- test(e2e): Isolate the react-router-7 instrumentation double-instrumentation check (#26886)
- test(e2e): Run astro-6 on Bun, Deno and Cloudflare (#26845)
- test(e2e): Run fastify-5 on Bun and Deno (#26828)
- test(e2e): Run nuxt-5 on Bun, Deno and Cloudflare (#26756)
- test(e2e): Set up the nuxt-4 Cloudflare variant from
sentry.cloudflare.config.ts(#26755) - test(e2e): Shard the nextjs-16 canary webpack job (#26853)
- test(node): Check docker-compose healthchecks in a static test (#26884)
- test(solid): Check sentryVitePlugin with the Solid 2 server build (#26789)
Work in this release was contributed by @pranav514. Thank you for your contribution!
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 29.82 KB |
| @sentry/browser - with treeshaking flags | 28.06 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.93 KB |
| @sentry/browser (incl. Tracing) | 52.4 KB |
| @sentry/browser (incl. Tracing Core) | 39.63 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 52.41 KB |
| @sentry/browser (incl. Tracing, Profiling) | 55.23 KB |
| @sentry/browser (incl. Tracing, Replay) | 91.4 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 80.45 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 96.14 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 108.78 KB |
| @sentry/browser (incl. Feedback) | 47.26 KB |
| @sentry/browser (incl. sendFeedback) | 30.38 KB |
| @sentry/browser (incl. FeedbackAsync) | 35.31 KB |
| @sentry/browser (incl. Metrics) | 31.11 KB |
| @sentry/browser (incl. Logs) | 31.38 KB |
| @sentry/browser (incl. Metrics & Logs) | 32.03 KB |
| @sentry/react | 31.8 KB |
| @sentry/react (incl. Tracing) | 55.05 KB |
| @sentry/vue | 37.84 KB |
| @sentry/vue (incl. Tracing) | 55.35 KB |
| @sentry/svelte | 29.85 KB |
| @sentry/effect (client) | 41.23 KB |
| @sentry/effect (client, incl. Tracing) | 53.67 KB |
| @sentry/effect (client, incl. Tracing, Logs, Metrics) | 64.75 KB |
| @sentry/remix (Remix 3 client bundle) | 58 KB |
| CDN Bundle | 31.62 KB |
| CDN Bundle (incl. Tracing) | 52.77 KB |
| CDN Bundle (incl. Logs, Metrics) | 34.31 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 55.18 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 74.3 KB |
| CDN Bundle (incl. Tracing, Replay) | 89.68 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 92.16 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 95.03 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 97.44 KB |
| CDN Bundle - uncompressed | 92.34 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 156.09 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 100.49 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 163.54 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 227.82 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 273.71 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 281.16 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 285.36 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 292.8 KB |
| @sentry/nextjs (client) | 58.67 KB |
| @sentry/sveltekit (client) | 53.73 KB |
| @sentry/core/server | 44.75 KB |
| @sentry/core/browser | 14.12 KB |
| @sentry/node | 153.69 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 81.49 KB |
| @sentry/node - without tracing | 87.68 KB |
| @sentry/node - without channel injection | 142.93 KB |
| @sentry/aws-serverless | 98.07 KB |
| @sentry/cloudflare (withSentry) - minified | 206.95 KB |
| @sentry/cloudflare (withSentry) | 480.16 KB |
| @sentry/cloudflare (withSentry, instrumented CommonJS package) - minified | 209.83 KB |
| @sentry/nextjs/cloudflare (withSentry) - minified | 231.59 KB |