Repository navigation
Releases: getsentry/sentry-javascript
Release list
11.10.0
Important Changes
-
feat: Add a managed tunnel that the SDK derives from the DSN (#25199, #25200, #25783)
Set
tunnel: truein your browserSentry.initcall to send events through your own server. This helps when ad blockers block requests to Sentry. The browser derives the tunnel path from the DSN, so older and newer builds of your client and server always agree on the path.To serve the tunnel, add
serveTunnelIntegration()to your server SDK. Astro, Nuxt, Nitro, React Router, Remix 3, SolidStart, SvelteKit and TanStack Start then answer tunnel requests automatically:// browser Sentry.init({ dsn, tunnel: true }); // server Sentry.init({ dsn, integrations: [Sentry.serveTunnelIntegration()] });
If the browser uses a different DSN than the server, set
serveTunnelIntegration({ allowedDsns: [browserDsn] }). For other setups, the server SDKs exporthandleTunnelRequestIfMatched,handleTunnelRequest,isTunnelRequestandgetTunnelPath:app.use((req, res, next) => Sentry.handleTunnelRequestIfMatched(req, res) ?? next());
The
requestoption ofhandleTunnelRequestis deprecated and will be removed in v12. -
feat: Make span origins spec compliant (#25602)
Some span origins changed their names to follow the trace origin spec:
auto.amqplib.*is nowauto.queue.amqplib.*, andauto.kafkajs.*is nowauto.queue.kafkajs.*.auto.vercelai.channelis nowauto.ai.vercelai.auto.firebase.firestoreis nowauto.db.firebase.firestore, andauto.firebase.functionsis nowauto.function.firebase.auto.aws.aws_sdkis nowauto.{rpc,db,queue,ai}.aws_sdk, with the category from the span op.auto.aws_lambdais nowauto.function.aws_serverless.auto.mcp.notificationis nowauto.function.mcp_server.notification.auto.db.cloudflare.durable_object.sqlis nowauto.db.cloudflare.durable_object_sql.auto.http.browser.{lcp,cls,inp}is nowauto.ui.browser.{lcp,cls,inp}.
If you have
ignoreSpansrules, queries or alerts on the old origins, change them to use the new origins. -
feat(bun): Add incoming request options and request sessions to
bunServerIntegration(#25580)bunServerIntegrationnow accepts the same options asdenoServeIntegration:ignoreRequestBody,ignoreIncomingRequests,ignoreStaticAssets,spans,onSpanCreated,onSpanEnd,sessionsandsessionFlushingDelayMS. The callbacks receive the webRequest.Bun.servenow records a request session for each incoming request. Sessions are sent only when areleaseis set. To turn them off, setbunServerIntegration({ sessions: false }).ignoreStaticAssetsdefaults totrue, soBun.serveno longer creates spans forGETrequests to common static assets such asfavicon.ico,robots.txtor*.jsfiles. To keep these spans, setbunServerIntegration({ ignoreStaticAssets: false }).Bun.servespans also follow the client's tracing configuration by default, so the integration does not start spans when tracing is disabled. Errors thrown forOPTIONSandHEADrequests are now captured. -
feat(bun): Inject debug IDs and upload source maps in
sentryBunPlugin(#25670)sentryBunPluginfrom@sentry/bun/pluginnow accepts the same options assentryEsbuildPlugin(org,project,authToken,release,sourcemaps, ...). WhenBun.buildwrites source maps tooutdir, the plugin injects the debug ID that Bun writes into each bundle, injects the release, and uploads the source maps at the end of the build. You no longer need to runsentry sourcemap injectandsentry sourcemap uploadafter the build.Like the other bundler plugins,
sentryBunPluginnow sends build telemetry and injects the release it detects (for example, from git). To turn off telemetry, settelemetry: false. -
feat(cloudflare): Add incoming request span options to
httpServerIntegration(#25582)Cloudflare's
httpServerIntegrationnow acceptsignoreIncomingRequests,ignoreStaticAssets,spans,onSpanCreatedandonSpanEnd, with the same meaning as in the Node, Deno and Bun integrations. The callbacks receive the webRequest.ignoreStaticAssetsdefaults totrue, so workers no longer create spans forGETrequests to common static assets such asfavicon.ico,robots.txtor*.jsfiles. To keep these spans, sethttpServerIntegration({ ignoreStaticAssets: false }). Request spans also follow the client's tracing configuration by default, so the SDK does not start them when tracing is disabled. IfignoreRequestBodythrows, the request no longer fails, and the SDK skips the body. -
feat(cloudflare): Let users configure the channel integrations (#25584)
When the
@sentry/cloudflare/viteplugin bundles an instrumented package (for examplepgoropenai), the SDK adds the matching integration with its default options.@sentry/cloudflarenow exports these integrations, so you can set their options, for example ininstrument.server.ts:export default Sentry.defineCloudflareOptions(env => ({ dsn: env.SENTRY_DSN, integrations: [Sentry.openAIIntegration({ recordInputs: false, recordOutputs: false })], }));
These integrations need the vite plugin. Without it, they record nothing, and with
debug: truethe SDK logs a warning. -
feat(node): Add
onSpanEndtohttpIntegration(#25581)httpIntegrationandhttpServerSpansIntegrationnow acceptonSpanEnd, a hook that runs when the response for an incoming request finishes, before its span ends. Use it to change the span based on the response. Deno and Bun already have this option. -
feat(node, bun, deno, cloudflare): Align portable exports across server SDKs (#25583)
Node, Bun, Deno and Cloudflare now export the same helpers from
@sentry/coreand@sentry/server-utilswhere they work on that runtime:- Node and Bun now export
moduleMetadataIntegration,instrumentPostgresJsSql,instrumentCreateReactAgent,awsIntegrationand theFlueOptionstype.awsIntegrationwas already in their default integrations. - Deno and Cloudflare now export
parameterizeandinstrumentStateGraphCompile. - Bun and Cloudflare now export the
LogandLogSeverityLeveltypes. - Deno now exports
fastifyIntegration, which was already in its default integrations.
- Node and Bun now export
-
feat(nuxt): Start the server SDK on the Nuxt Vite server (experimental) (#25524)
Sentry now supports Node.js production builds using Nuxt 4.6's experimental Vite server (
server: { builder: 'vite' }). Yoursentry.server.configloads automatically, enabling request tracing and automatic database spans for supported libraries.Development mode, Cloudflare, automatic capture of server rendering errors, and connecting server and browser traces via HTML meta tags are not yet supported. This experimental support may change in minor releases.
-
ref(deno, bun): Use a shared request handler wrapper for
Deno.serveandBun.serve(#25586, #25587)Deno.serveandBun.servenow use the same request handler wrapper, which Cloudflare will also use. On both runtimes, errors inOPTIONSandHEADrequests now carry the request data, and the SDK keeps everySet-Cookieheader of a response instead of only the last one.For Deno users:
- When the source of a streamed response fails, the SDK now captures the error and marks the span as failed.
- The SDK no longer reads a streamed response ahead of the client.
Bun.servespans now follow the Sentry conventions forhttp.serverspans, as on Node, Deno and Cloudflare:url.templateis nowhttp.route. Routes without parameters also gethttp.routeand theroutesource.url.domainis nowserver.address.- A request to
/gets theroutesource and the nameGET /. - Spans also get
user_agent.originalandhttp.request.body.size.
Other Changes
- chore(deps): Bump rrweb to 2.45.0 (#25794)
- feat: Export the Node bundler plugins from SDKs that wrap @sentry/node (#25536)
- feat(cloudflare): instrument Workers KV bindings (#25488)
- feat(nextjs): Warn when Next.js production builds miss the instrumentation file (#25603)
- feat(react-router): Support renderToReadableStream in createSentryHandleRequest (#25254)
- feat(server-utils): Emit
execute_toolspans for Anthropic'sbeta.sessions.events.toolRunner()(#25554) - feat(server-utils): Record Workers AI Clairic calls as gen_ai.extract spans (#25624)
- feat(server-utils): Instrument together-ai 1.x (#25823)
- fix(browser): Preserve empty ...
10.78.0
- feat(v10/deno): Re-export portable helpers that Cloudflare exposes (#25708)
- fix(v10/core): Drop sampled-out errors before they take a promise buffer slot (#25753)
- fix(v10/core): Stop sending client reports for breadcrumbs (#25752)
- fix(v10/core): Use
trace_metricdata category for metrics rate limits and client reports (#25612) - fix(v10/nextjs): Don't crash Cloudflare workers on import of the Next.js version helper (#25730)
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 27.64 KB |
| @sentry/browser - with treeshaking flags | 26.12 KB |
| @sentry/browser (incl. Tracing) | 46.2 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 47.96 KB |
| @sentry/browser (incl. Tracing, Profiling) | 50.87 KB |
| @sentry/browser (incl. Tracing, Replay) | 84.73 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 74.6 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 89.33 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 101.65 KB |
| @sentry/browser (incl. Feedback) | 44.42 KB |
| @sentry/browser (incl. sendFeedback) | 32.34 KB |
| @sentry/browser (incl. FeedbackAsync) | 37.34 KB |
| @sentry/browser (incl. Metrics) | 28.7 KB |
| @sentry/browser (incl. Logs) | 28.94 KB |
| @sentry/browser (incl. Metrics & Logs) | 29.6 KB |
| @sentry/react | 29.42 KB |
| @sentry/react (incl. Tracing) | 48.46 KB |
| @sentry/vue | 33.39 KB |
| @sentry/vue (incl. Tracing) | 48.52 KB |
| @sentry/svelte | 27.66 KB |
| CDN Bundle | 30 KB |
| CDN Bundle (incl. Tracing) | 48.13 KB |
| CDN Bundle (incl. Logs, Metrics) | 31.56 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 49.42 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 70.13 KB |
| CDN Bundle (incl. Tracing, Replay) | 84.97 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 86.24 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 90.65 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 91.9 KB |
| CDN Bundle - uncompressed | 89.11 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 145.03 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 93.71 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 148.92 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 216.26 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 262.18 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 266.05 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 275.56 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 279.42 KB |
| @sentry/nextjs (client) | 51.06 KB |
| @sentry/sveltekit (client) | 46.63 KB |
| @sentry/core/server | 79.78 KB |
| @sentry/core/browser | 66.16 KB |
| @sentry/node-core | 62.59 KB |
| @sentry/node | 124.3 KB |
| @sentry/node (incl. diagnostics channel injection) | 167.44 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 166 B |
| @sentry/node/light | 50.96 KB |
| @sentry/node - without tracing | 74.09 KB |
| @sentry/aws-serverless | 83.04 KB |
| @sentry/cloudflare (withSentry) - minified | 200.2 KB |
| @sentry/cloudflare (withSentry) | 493.63 KB |
10.77.1
Important Changes
-
feat(v10/nextjs): Add a tunnel route handler that sends only the event payload to Sentry (#25559)
The
tunnelRouteoption can now send events through a route handler in your app. The handler forwards only the event payload to Sentry, and no request headers. To use it, add this file next to yourtunnelRouteoption:// app/sentry-tunnel/route.ts (or src/app/sentry-tunnel/route.ts) export { POST } from '@sentry/nextjs/tunnel';
The handler accepts events for the DSN of your server SDK. To accept other DSNs, use
createSentryTunnelRoute({ allowedDsns })from the same import. Without the file, the tunnel route works as before.With the handler, tunnel requests go through your middleware. If your middleware blocks unauthenticated requests, exclude the tunnel route in its
matcher.Also, the server no longer sends spans of tunnel requests when span streaming is on, because these spans only show the SDK's own traffic.
-
feat(v10/nextjs): Send tunnel route requests with
credentials: 'omit'(#25561)With
tunnelRouteand no tunnel route handler,@sentry/nextjsnow sends events from the browser withcredentials: 'omit', because the tunnel route does not need cookies.
If a layer in front of your app checks cookies before it lets requests through (for example Vercel Deployment Protection), you can send them again in your browserSentry.initcall:// instrumentation-client.ts Sentry.init({ transportOptions: { fetchOptions: { credentials: 'same-origin' } }, });
-
fix(v10/deps)!: Limit
@opentelemetry/apito<1.10.0and the OpenTelemetry SDK to<3.0.0(#25715)Breaking change
If your app uses
@opentelemetry/api1.10.0 or OpenTelemetry SDK v3 together with v10 of the Sentry SDK, you must stay on@opentelemetry/apibelow 1.10.0 and OpenTelemetry SDK v2, or upgrade to v11.@opentelemetry/api1.10.0 only works with OpenTelemetry SDK v3 (@opentelemetry/core3.x,@opentelemetry/instrumentation0.300.x). The SDK v2 packages that v10 uses only support@opentelemetry/apibelow 1.10.0, and SDK v3 needs Node.js 22.15.0 or newer, while v10 supports Node.js 18 and newer. For this reason, v10 now limits@opentelemetry/apito<1.10.0, and the@opentelemetry/instrumentationand@opentelemetry/exporter-trace-otlp-httppeer dependencies of@sentry/node-coreto<0.300.0.If your app depends on
@opentelemetry/apidirectly, use a version below 1.10.0 (for example~1.9.1). With 1.10.0, your app and the Sentry SDK use different copies of the API, and the OpenTelemetry calls of your app do not see the tracer provider of the Sentry SDK.To use
@opentelemetry/api1.10.0 and OpenTelemetry SDK v3, upgrade to v11 of the Sentry SDK. For the upgrade steps, see the migration guide.
Other Changes
- feat(v10/core): Limit the body size of tunnel requests (#25560)
- fix(v10/astro): Upload source maps of Astro 7's prerender build (#25426)
- fix(v10/aws-serverless): End the
function.awsspan when a callback-style handler calls back (#25693) - fix(v10/browser): Apply
urlQueryParamsto event URLs, static span names and LCP URLs (#25297) - fix(v10/browser): Apply
urlQueryParamsto the Referer header (#25425) - fix(v10/browser): Skip profiling for unsampled active root spans (#25502)
- fix(v10/build): Make CJS re-exports visible to Node ESM imports (#25690)
- fix(v10/bundler-plugins): Check
globalThisbeforeglobalin the injected snippet (#25507) - fix(v10/bundler-plugins): Escape JSON in generated injection code (#25298)
- fix(v10/bundler-plugins): Inject the release only into chunks that load at startup (#25695)
- fix(v10/cloudflare): auto-instrument a re-exported default export (#25407)
- fix(v10/cloudflare): auto-instrument when wrangler
mainis a package (#25430) - fix(v10/cloudflare): Bind a default re-export with
varin the Vite transform (#25733) - fix(v10/cloudflare): keep default exports intact when auto-instrumenting (#25732)
- fix(v10/core): Don't mark http client spans as errors when the caller aborts (#25431)
- fix(v10/core): Record span outcomes for spans dropped when building a transaction (#25294)
- fix(v10/core): Stop treating previous_response_id as the OpenAI conversation id (#25432)
- fix(v10/hono): Expose runtime-specific SDK options (#25299)
- fix(v10/nextjs): Apply top-level
bundleSizeOptimizationsto webpack and Turbopack builds (#25261) - fix(v10/nextjs): Filter query parameters in request error context (#25433)
- fix(v10/nextjs): Only inject applicationKey metadata into browser bundles (#25567)
- fix(v10/nitro): Use forward slashes for resolved plugin paths on Windows (#25692)
- fix(v10/node): Don't mark fetch spans as errors when the caller aborts (#25273)
- fix(v10/node): Only read JavaScript and TypeScript source files in ContextLines (#25699)
- fix(v10/node): Read module versions from the isolated layouts of pnpm and Bun (#25698)
- fix(v10/nuxt): Delete public source maps before Nitro lists its public assets (#25284)
- fix(v10/nuxt): Keep sourcesContent in Nuxt 5 server source maps (#25499)
- fix(v10/nuxt): Skip 3xx/4xx Nuxt errors in the vue:error hook (#25427)
- fix(v10/react): Don't crash ErrorBoundary when
error.causeis not an Error (#25691) - fix(v10/react): Match React Router navigations against root routes only (#25694)
- fix(v10/react-router): Respect custom default integrations (#25434)
- fix(v10/remix): Respect custom default integrations (#25435)
- fix(v10/replay): Apply attribute masking to breadcrumb messages (#25697)
- fix(v10/server-utils): avoid quadratic SQL summary regex backtracking (#25257)
- fix(v10/server-utils): End Express layer spans when the client aborts (#25256)
- fix(v10/sveltekit): add op and origin to Kit's
sveltekit.endpointspan (#25429) - fix(v10/tanstackstart-react): Keep parametrized route names in Nitro 3 builds (#25316)
- fix(v10/tanstackstart-react): Rewrite source paths of split route modules (#25428)
Internal Changes
- ci(v10): Assign Junior backport PRs to the original author (#25529)
- ci(v10): Cache Playwright browsers on v10 (#25720)
- test(v10): Skip Vercel AI OTel multi-step test on Node 26.12+ (#25443)
- test(v10/cloudflare): Deflake flush-timeout Workflow test (#25182)
- test(v10/e2e): Pull Supabase images from GHCR (#25719)
- test(v10/e2e): Update TanStack Start build tooling (#25436)
- test(v10/e2e): Use Node 22.23.4 in E2E test apps (#25687)
- test(v10/sveltekit): Pin rollup to 4.64.5 (#25440)
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 27.62 KB |
| @sentry/browser - with treesh... |
11.9.0
Important Changes
-
feat: Rename
diagnostic_channel, fetch and gRPC span origins (#25601)Some span origins changed their names to match the other v11 origins:
auto.graphql.diagnostic_channelis nowauto.graphql.graphql.auto.db.redis.diagnostic_channel,auto.db.mysql2.diagnostic_channelandauto.db.mongoose.diagnostic_channelnow end in.native_channel.auto.http.wintercg_fetchis nowauto.http.fetch, as on Bun, Deno and Cloudflare.auto.grpc.serverlessis nowauto.grpc.google_cloud.
If you have
ignoreSpansrules, queries or alerts on the old origins, change them to use the new origins. -
feat(deno): Add incoming request options to
denoServeIntegration(#25493)denoServeIntegrationnow acceptsignoreRequestBody,ignoreIncomingRequests,ignoreStaticAssets,spans,onSpanCreatedandonSpanEnd, with the same meaning as indenoHttpIntegration. The callbacks receive the webRequest.ignoreStaticAssetsdefaults totrue, soDeno.serveno longer creates spans forGETrequests to common static assets such asfavicon.ico,robots.txtor*.jsfiles. To keep these spans, setdenoServeIntegration({ ignoreStaticAssets: false }).Deno.servespans also follow the client's tracing configuration by default, so the integration does not start spans when tracing is disabled. -
feat(deno): Record request sessions for
Deno.serve(#25496)denoServeIntegrationnow records a request session for each incoming request, asdenoHttpIntegrationdoes fornode:http. This gives release health and crash-free rates forDeno.serveapps. Sessions are sent only when areleaseis set. To turn them off, setdenoServeIntegration({ sessions: false }).sessionFlushingDelayMSsets how long the SDK waits before it sends the session aggregate. -
feat(deno): Register channel injection hooks from
init()(#25546)Sentry.init()in@sentry/denonow registers the diagnostics-channel injection hooks, as@sentry/nodedoes. The channel integrations now record spans without--preload=npm:@sentry/deno/import, for modules that you import afterinit(). To also instrument modules that load beforeinit(), such as static imports in your entry module, keep the preload. Withdebug: true, the SDK logs a warning when no injection is active.On Node.js, tracing-hooks messages now show with
debug: trueinstead of withDEBUG=@apm-js-collab/*. -
feat(nextjs): Add a tunnel route handler that sends only the event payload to Sentry (#25456)
The
tunnelRouteoption can now send events through a route handler in your app. The handler forwards only the event payload to Sentry, and no request headers. To use it, add this file next to yourtunnelRouteoption:// app/sentry-tunnel/route.ts (or src/app/sentry-tunnel/route.ts) export { POST } from '@sentry/nextjs/tunnel';
The handler accepts events for the DSN of your server SDK. To accept other DSNs, use
createSentryTunnelRoute({ allowedDsns })from the same import. Without the file, the tunnel route works as before.Also, the server no longer sends spans of tunnel requests when span streaming is on, because these spans only show the SDK's own traffic.
-
feat(nextjs): Never emit trace meta tags from a prerender (#25141)
Pageloads of apps with
cacheComponentsenabled are connected to their server request again. Pages that Next.js prerenders no longer carry trace information, so a cached page can no longer connect visitors to a request that was not theirs. This also applies to ISR pages. The pageload waits for the trace information when it arrives with the part of the page that streams in after a cached shell.If you set up OpenTelemetry yourself and register
SentryPropagator, registerNextSentryPropagatorinstead and pass your tracer provider tomarkPrerendersOnTracerProvider, so that your prerendered pages carry no trace information either. -
feat(nextjs): Send tunnel route requests with
credentials: 'omit'(#25509)With
tunnelRouteand no tunnel route handler,@sentry/nextjsnow sends events from the browser withcredentials: 'omit', because the tunnel route does not need cookies.
If a layer in front of your app checks cookies before it lets requests through (for example Vercel Deployment Protection), you can send them again in your browserSentry.initcall:// instrumentation-client.ts Sentry.init({ transportOptions: { fetchOptions: { credentials: 'same-origin' } }, });
-
feat(nitro): Report a single
http.serverspan per request (#25295)A Nitro request now creates only one
http.serverspan. The nestedhttp.serverspans with the originsauto.http.nitro.srvxandauto.http.nitro.h3are removed. h3 route handlers now get ahandlerspan, and middleware spans are direct children of thehttp.serverspan. If you have queries or alerts on the removed spans, change them to use thehttp.serverspan or thehandlerspan. -
fix: Use
auto.http.http_serverorigin for allnode:httpserver spans (#25604)On Bun and Deno,
node:httpserver spans now have the originauto.http.http_serverinstead ofauto.http.server, as on Node.js. On Node.js, nothing changes.Bun.servespans keepauto.http.bun.serveandDeno.servespans keepauto.http.deno. If you haveignoreSpansorbeforeSendSpanrules, queries or alerts onauto.http.server, change them to useauto.http.http_server.
Other Changes
- feat(browser): Add
LoaderSentrytype export (#25357) - feat(cloudflare): Add
isStreamingResponseoption and detect streamed RSC responses (#24932) - feat(core): Add
dataCollection.mcpoption (#25553) - feat(core): Limit the body size of tunnel requests (#25515)
- feat(nextjs): Link
use cachehits to their fill across instances (#25448) - feat(nextjs): Wait for the resumed part of a document before starting the pageload (#25142)
- feat(nitro): Merge the nitro integrations into a single
nitroIntegration(#25349) - feat(server-utils): Emit
execute_toolspans for Anthropic'sbeta.messages.toolRunner()(#25320) - fix(astro): defer to
@sentry/cloudflare/viteon Cloudflare Workers (#25347) - fix(aws-serverless): End the
function.awsspan when a callback-style handler calls back (#25543) - fix(browser): Skip profiling for unsampled active root spans (#25498)
- fix(bundler-plugins): Check
globalThisbeforeglobalin the injected snippet (#25365) - fix(bundler-plugins): Inject the release only into chunks that load at startup (#25541)
- fix(cloudflare): auto-instrument a re-exported default export (#25345)
- fix(cloudflare): Deliver check-ins and events from forked isolation scopes (#25374)
- fix(cloudflare): Don't hold Durable Object invocations open with the segment-end flush timer (#25490)
- fix(cloudflare): keep default exports intact when auto-instrumenting (#25372)
- fix(core): Use
trace_metricdata category for metrics rate limits and client reports (#25606) - fix(deps): Allow
@opentelemetry/api1.9 again (#25684) - fix(deno): Re-export portable helpers that Cloudflare exposes (#25491)
- fix(elysia): Set SDK metadata on the options passed to init (#24521)
- fix(elysia): use Node transport on Node runtimes (#25015)
- fix(hono): Read connection info from the runtime instead of Hono helpers (#25552)
- fix(nextjs): Only inject applicationKey metadata into browser bundles (#25565)
- fix(nitro): Use forward slashes for resolved plugin paths on Windows (#25023)
- fix(node,vercel-edge,bundler-plugins): Ignore commit env vars set to their own name (#25244)
- fix(node): Guard user callbacks in the
node:httpserver instrumentation (#25592) - fix(node): Only read JavaScript and TypeScript...
11.8.0
Important Changes
-
feat(bundler-plugins): Release
@sentry/webpack-plugin,@sentry/vite-plugin,@sentry/rollup-pluginand@sentry/esbuild-pluginfrom the SDK repository (#25095)The four standalone bundler plugins now release together with the SDK, so their version jumps from 5.4.1 to the SDK version. Each package re-exports the matching
@sentry/bundler-pluginsentry point, which we recommend for new projects. The plugin options do not change, but the update brings these breaking changes:- Node.js 20.19.0 or higher is required.
@sentry/webpack-pluginrequires webpack 5.1 or higher. The@sentry/webpack-plugin/webpack5entry point still works and exports the same plugin as@sentry/webpack-plugin.- The plugins use the
sentryCLI SDK instead of@sentry/cli. Sentry self-hosted 26.4.2 or higher is supported. Lower versions may continue to work. - Deploys that the plugins create on Vercel use the value of
VERCEL_TARGET_ENV(production,previewor a custom name) as their environment, instead ofvercel-productionorvercel-preview. To keep the old value, setrelease.deploy.env.
-
feat(server-utils): Instrument the OpenAI decisions API as
gen_ai.decidespans (#25285)OpenAI
decisions.createcalls now creategen_ai.decidespans.
Other Changes
- feat(core): Support SuppressedError in LinkedErrors integration (#25246)
- fix(astro): Delete generated source maps for static output (#25310)
- fix(astro): Upload source maps of Astro 7's prerender build (#25309)
- fix(browser): Apply
urlQueryParamsto the Referer header (#25324) - fix(cloudflare): auto-instrument when wrangler
mainis a package (#25343) - fix(hono): Expose runtime-specific SDK options (#25290)
- fix(node): Instrument Prisma 8 CollectionBase from rc.15 (#25301)
- fix(nuxt): Skip 3xx/4xx Nuxt errors in the vue:error hook (#25341)
- fix(server-utils): Read pi-durable 1.2.0 tool results from
output(#25312) - fix(server-utils): Transform modules once when two Sentry Vite plugins add orchestrion (#25043)
- fix(sveltekit): add op and origin to Kit's
sveltekit.endpointspan (#25376) - fix(tanstackstart-react): Keep parametrized route names in Nitro 3 builds (#25307)
- fix(tanstackstart-react): Rewrite source paths of split route modules (#25361)
Internal Changes
- chore: Add external contributor to CHANGELOG.md (#25375)
- ci: Install the pnpm version that Volta pins (#25287)
- license: Add cli FSL notice to package licenses (#25314)
- ref(core): use shared MCP attribute conventions (#25059)
- ref(tanstackstart-react): Reuse shared component annotation options (#25313)
- test(browser): Keep whitespace text out of the handlers-lcp page (#25280)
- test(bun): Restore @sentry/core spies after the Bun.serve tests (#25276)
- test(bundler-plugins): Disable CLI telemetry in the CLI contract tests (#25308)
- test(e2e): Add node-openai-decisions-send-to-sentry test app (#25331)
- test(e2e): Add node-openai-send-to-sentry test app (#24824)
- test(e2e): Add nuxt-5-sourcemaps test (#25268)
- test(e2e): Inherit root Volta config in all e2e test apps (#25369)
- test(e2e): Use an external host address for the Lambda DSN on loopback hostnames (#25282)
- test(nextjs): Run nextjs-16-tunnel on Cloudflare (#25161)
- test(nextjs): Switch DEBUG_BUILD with a getter instead of re-importing the SDK (#25279)
- test(node): Await the child exit in the "should exit" integration tests (#25277)
- test(node): Cover ioredis v6 in the diagnostics_channel suite (#25300)
- test(node): Cover LangChain model calls made from a tool without config (#25326)
- test(node): Log slow and failed Docker Compose starts in integration tests (#25278)
- test(node): Unflake captureMessage with_level test (#25358)
- test(sveltekit): Pin rollup to 4.64.5 (#25328)
Work in this release was contributed by @kunal649 and @mketiku. Thank you for your contributions!
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 29.18 KB |
| @sentry/browser - with treeshaking flags | 27.36 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.27 KB |
| @sentry/browser (incl. Tracing) | 50.85 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 50.85 KB |
| @sentry/browser (incl. Tracing, Profiling) | 53.73 KB |
| @sentry/browser (incl. Tracing, Replay) | 89.67 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 78.79 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 94.29 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 106.92 KB |
| @sentry/browser (incl. Feedback) | 46.28 KB |
| @sentry/browser (incl. sendFeedback) | 34.12 KB |
| @sentry/browser (incl. FeedbackAsync) | 39.11 KB |
| @sentry/browser (incl. Metrics) | 30.18 KB |
| @sentry/browser (incl. Logs) | 30.45 KB |
| @sentry/browser (incl. Metrics & Logs) | 31.07 KB |
| @sentry/react | 30.96 KB |
| @sentry/react (incl. Tracing) | 53.11 KB |
| @sentry/vue | 37.15 KB |
| @sentry/vue (incl. Tracing) | 53.72 KB |
| @sentry/svelte | 29.2 KB |
| @sentry/remix (Remix 3 client bundle) | 55.75 KB |
| CDN Bundle | 30.9 KB |
| CDN Bundle (incl. Tracing) | 51.35 KB |
| CDN Bundle (incl. Logs, Metrics) | 33.04 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 53.25 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 73.01 KB |
| CDN Bundle (incl. Tracing, Replay) | 88.13 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 90.02 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 94.14 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 96.04 KB |
| CDN Bundle - uncompressed | 91 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 152.38 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 97.38 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 158.19 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 224.37 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 269.73 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 275.53 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 283.11 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - ... |
11.7.0
Important Changes
-
feat(cloudflare): Add opt-in cron monitoring for Cron Triggers (#25014)
The new
cronTriggersIntegrationsends check-ins for Cron Triggers. Each check-in includes the schedule fromcontroller.cron, so Sentry creates the monitor on the first run. The integration is opt-in, because monitors are billed.Cron Triggers have no names, so map each cron expression of your wrangler config to a monitor slug. With the Sentry Cloudflare Vite plugin, add the integration to
src/instrument.server.ts:// src/monitorSlugs.ts export const monitorSlugs: Record<string, string> = { '30 9 * * MON-FRI': 'daily-report', }; // src/instrument.server.ts import * as Sentry from '@sentry/cloudflare'; import { monitorSlugs } from './monitorSlugs'; export default Sentry.defineCloudflareOptions(env => ({ dsn: env.SENTRY_DSN, integrations: [Sentry.cronTriggersIntegration({ monitorSlug: cron => monitorSlugs[cron] })], })); // src/index.ts import { monitorSlugs } from './monitorSlugs'; export default { async scheduled(controller, env) { switch (monitorSlugs[controller.cron]) { case 'daily-report': // Your daily report job break; } }, };
The
monitorSlugfunction can also return monitor settings, for example{ monitorSlug: 'daily-report', maxRuntime: 30 }, orundefinedto send no check-ins for a trigger. WithoutmonitorSlug, the SDK derives the slug from the cron expression. If you deploy withwranglerdirectly, pass the same integration toSentry.withSentry. -
feat(node): Add neonIntegration for @neondatabase/serverless (#25164, #25176)
The new
neonIntegrationcreatesdbspans for queries of the@neondatabase/serverlessdriver: for the WebSocketClientandPool, and for the HTTPneon()function. This includes theneon-httpandneon-serverlessadapters of Drizzle. The integration is on by default when tracing is enabled. -
feat(node): Stop sending the process session once request sessions are tracked (#24915)
Node servers sent release health data two times: as request session aggregates, and as the process session of
processSessionIntegration. An error in a request also marked the process session as errored, so the SDK counted the error two times. Now the SDK drops the process session when it tracks the first request session. Scripts, CLIs and workers that do not serve requests keep the process session, and so do servers withhttpServerIntegration({ sessions: false }). This changes the release health numbers of Node servers, because they no longer send the errored or crashed update of the process session. -
feat(server-utils): Record decide calls as
gen_ai.decidespans (#25270, #25272, #25274, #25281)Vercel AI
experimental_decidecalls, Mastra classifier evaluations, TypeSafe and LangChain Jev calls, and Workers AI calls to TypeSafe Jev and Cloudflare Clef models now createdecide <model>spans with the opgen_ai.decide. Before, these spans had the opgen_ai.evaluate, which is now deprecated in the Sentry conventions. If you usegen_ai.evaluatein queries, alerts or dashboards, change it togen_ai.decide. -
fix(browser): Apply
urlQueryParamsto more URLs (#25262, #25289)The
dataCollection.urlQueryParamsoption now also filters the query parameters of these URLs:- the page URL in
event.request.url - the
browser.*andresource.*span names withtraceLifecycle: 'static' - the LCP URL attributes
lcp.urlandbrowser.web_vital.lcp.url - the URLs in fetch, XHR and navigation breadcrumbs
- the
ui.element.urlattribute ofelementTimingIntegration
Before this fix, these URLs could send sensitive query values, for example
?jwt=..., to Sentry. - the page URL in
-
fix(nextjs): Apply top-level
bundleSizeOptimizationsto webpack and Turbopack builds (#24818)The top-level
bundleSizeOptimizationsoption now removes unused SDK code in webpack and in Turbopack builds. Before, the tree-shaking options had no effect on Turbopack. Thewebpack.treeshakeoption is deprecated. It still works, but when you set both options,bundleSizeOptimizationstakes precedence.
Other Changes
- feat(nuxt): Detect the server API with
@nuxt/kit4.6 (#25138) - fix(bundler-plugins): Escape JSON in generated injection code (#25265)
- fix(core): Don't mark http client spans as errors when the caller aborts (#25260)
- fix(core): Record
spanclient report outcomes when discarding transactions (#25006) - fix(core): Record client outcomes when beforeSend callbacks return invalid values (#25049)
- fix(core): Record span outcomes for spans dropped when building a transaction (#25048)
- fix(core): Report actual item count in client reports of envelope send failures (#25185)
- fix(core): Strip internal custom span name from streamed spans (#25212)
- fix(nextjs): Filter query parameters in request error context (#25233)
- fix(node): Don't mark fetch spans as errors when the caller aborts (#25129)
- fix(nuxt): Delete public source maps before Nitro lists its public assets (#25267)
- fix(nuxt): Keep
@sentry/server-runtime-injectionexternal on Nitro v3 (#24901) - fix(nuxt): Remove @opentelemetry/resources dev alias (#25216)
- fix(profiling-node): Stop the trace lifecycle profiler when spans are unsampled (#25210)
- fix(react-router): Respect custom default integrations (#25259)
- fix(remix): Respect custom default integrations (#25258)
- fix(server-utils): avoid quadratic SQL summary regex backtracking (#25255)
- fix(server-utils): End Express layer spans when the client aborts (#25209)
- fix(server-utils): Record amqplib consumer info before the first delivery and instrument the callback API (#25047)
- fix(server-utils): Stop treating previous_response_id as the OpenAI conversation id (#25269)
- fix(sveltekit): Read load event pathname untracked (#25235)
- fix(sveltekit): Stop adapter-node 6 output dir probe from deleting the build (#25193)
Internal Changes
- chore: Add external contributor to CHANGELOG.md (#25230)
- chore: Add external contributor to CHANGELOG.md (#25271)
- chore(deps-dev): Bump oxlint-tsgolint from 7.0.2001 to 7.0.2003 (#25237)
- chore(deps-dev): Bump rimraf from 5.0.10 to 6.1.3 (#25241)
- chore(deps): Bump
@sentry/conventionsto 0.27.0 (#25264) - chore(deps): Bump next from 16.2.11 to 16.3.8 in /dev-packages/e2e-tests/test-applications/nextjs-16 (#25179)
- chore(deps): Bump next from 16.2.11 to 16.3.8 in /dev-packages/e2e-tests/test-applications/nextjs-16-tunnel (#25190)
- chore(size-limit): weekly auto-bump (#25213)
- ci: Install Playwright in the background during E2E app builds (#25207)
- ci: Run lint steps in parallel (#25187)
- ci(bun): Test the oldest supported Bun version and the newest 1.4 (#25203)
- docs: Scope pre-PR tests to affected suites (#25198)
- feat(deps): Bump @aws-sdk/client-kinesis from 3.1068.0 to 3.1146.0 (#25240)
- feat(deps): Bump handlebars from 4.7.9 to 4.7.10 (#25206)
- feat(deps): Bump pino from 9.10.0 to 10.4.0 ([#25...
11.6.0
Important Changes
-
feat(nextjs): Add
@sentry/nextjs/cloudflare(#24998)The new
@sentry/nextjs/cloudflareentry point exportswithSentryfor the Worker entry of a Next.js app on Cloudflare Workers, for example.open-next/worker.jsof OpenNext. It iswithSentryof@sentry/cloudflarewith the Next.js server handling added, so a Next.js app on Workers gets the same spans as on Node.js.import * as Sentry from '@sentry/nextjs/cloudflare'; import handler from './.open-next/worker.js'; export default Sentry.withSentry( env => ({ dsn: env.SENTRY_DSN, tracesSampleRate: 1.0, }), handler, );
-
feat(server-utils): Add instrumentation for pi-durable (#24993)
The new
piDurableIntegrationtraces agents built with pi-durable: each run, with its model requests and tool calls. -
fix(core): Correct sleep clock drift on telemetry timestamps (#23054)
When a device sleeps, the
performance.now()clock of the browser stops. Before this change, timestamps of spans and other telemetry recorded after the sleep could be too early. The SDK now detects this drift and corrects its time origin, also for spans created from performance entries. Span end times are now computed from theperformance.now()duration since the span start, like in OpenTelemetry (#24903).
Other Changes
- feat(cloudflare): Skip spans for the pi_ tables of PiHarness (#25028)
- feat(remix): Propagate the server trace to Remix 3 page loads (#25145)
- feat(server-utils): Map Mastra classifier evaluations to gen_ai.evaluate spans (#25044)
- feat(server-utils): Record LangChain TypeSafeClassifier runs as gen_ai.evaluate spans (#25120)
- fix(browser): Check for clock drift on page lifecycle events (#25091)
- fix(core): Exclude attachments from internal exception events (#25160)
- fix(effect): Convert Effect span times to the Sentry clock (#24972)
- fix(effect): Detect HTTP spans named after the request method (#25159)
- fix(node): Register Vercel keep-alive listeners once (#25146)
- fix(replay): Place CLS and INP web vitals at the right time (#24990)
- fix(server-utils): Record LangGraph span I/O for non-MessagesAnnotation state (#23315)
- fix(sveltekit): Upload source maps with SvelteKit 3 (#25139)
Internal Changes
- chore: Add external contributor to CHANGELOG.md (#25136)
- chore(deps-dev): Bump next from 15.5.24 to 15.5.27 (#25171)
- chore(nitro): Remove stale bundler-plugin-core rollup external (#25149)
- feat(cloudflare): Wrap vinext Worker entries with
@sentry/nextjs/cloudflare(#25000) - feat(deps): Bump next from 16.2.11 to 16.3.8 in /dev-packages/e2e-tests/test-applications/nextjs-sourcemaps (#25170)
- fix(deps): Bump @graphql-tools/utils to 12.0.3 (#25162)
- ref(eslint-plugin-sdk): Improve
no-unsafe-random-apisrule (#25123) - test(cloudflare): Port the remaining static suites to span streaming (#25112)
- test(cloudflare): Widen the wrangler readiness retry window in integration tests (#24925)
- test(e2e): Add a cloudflare-pi-durable end-to-end application (#25022)
- test(e2e): Add a node-pi-durable end-to-end application (#24994)
- test(e2e): Add Mastra Jev classifier test to node-mastra (#25115)
- test(e2e): Wait for the soft navigation entry before hiding the page (#25127)
- test(nextjs): Run nextjs-16 on Bun, Deno and Cloudflare (#24999)
- test(node): Add streamed span collection helpers (#25131)
- test(node): Cover Jev calls inside createAgent and LangGraph (#25132)
- test(node): Port AMQP integration tests to span streaming (#25158)
- test(node): Port Anthropic integration tests to span streaming (#25082)
- test(node): Port Bedrock tests to span streaming (#25086)
- test(node): Port Google GenAI tests to span streaming (#25083)
- test(node): Port Knex integration tests to span streaming (#25154)
- test(node): Port LangChain tests to span streaming (#25084)
- test(node): Port LangGraph tests to span streaming (#25085)
- test(node): Port Mastra tests to span streaming (#25087)
- test(node): Port MySQL integration tests to span streaming (#25148)
- test(node): Port OpenAI integration tests to span streaming (#25081)
- test(node): Port pool and DataLoader integration tests to span streaming (#25156)
- test(node): Port Tedious integration tests to span streaming (#25155)
- test(node): Port Vercel AI v5-v7 tests to span streaming (#25090)
Work in this release was contributed by @zkasuran. Thank you for your contribution!
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 29.1 KB |
| @sentry/browser - with treeshaking flags | 27.27 KB |
| @sentry/browser - with treeshaking flags tracing without tracing | 27.18 KB |
| @sentry/browser (incl. Tracing) | 50.64 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 50.66 KB |
| @sentry/browser (incl. Tracing, Profiling) | 53.52 KB |
| @sentry/browser (incl. Tracing, Replay) | 89.44 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 78.56 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 94.04 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 106.71 KB |
| @sentry/browser (incl. Feedback) | 46.21 KB |
| @sentry/browser (incl. sendFeedback) | 34.02 KB |
| @sentry/browser (incl. FeedbackAsync) | 39.02 KB |
| @sentry/browser (incl. Metrics) | 30.1 KB |
| @sentry/browser (incl. Logs) | 30.38 KB |
| @sentry/browser (incl. Metrics & Logs) | 31 KB |
| @sentry/react | 30.89 KB |
| @sentry/react (incl. Tracing) | 52.9 KB |
| @sentry/vue | 36.95 KB |
| @sentry/vue (incl. Tracing) | 53.49 KB |
| @sentry/svelte | 29.13 KB |
| @sentry/remix (Remix 3 client bundle) | 55.5 KB |
| CDN Bundle | 30.79 KB |
| CDN Bundle (incl. Tracing) | 51.12 KB |
| CDN Bundle (incl. Logs, Metrics) | 32.93 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 53.03 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 7... |
10.76.2
- feat(v10/deps): Bump bundler plugins to 5.4.1 (#25147)
- fix(v10/ai): Normalize token usage and preserve cache breakdowns (#25126)
- fix(v10/core): Exclude attachments from internal exception events (#25167)
- fix(v10/effect): Detect HTTP spans named after the request method (#25169)
- fix(v10/sveltekit): Upload source maps with SvelteKit 3 (#25172)
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 27.57 KB |
| @sentry/browser - with treeshaking flags | 26.05 KB |
| @sentry/browser (incl. Tracing) | 46 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 47.76 KB |
| @sentry/browser (incl. Tracing, Profiling) | 50.68 KB |
| @sentry/browser (incl. Tracing, Replay) | 84.5 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 74.37 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 89.13 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 101.46 KB |
| @sentry/browser (incl. Feedback) | 44.34 KB |
| @sentry/browser (incl. sendFeedback) | 32.25 KB |
| @sentry/browser (incl. FeedbackAsync) | 37.27 KB |
| @sentry/browser (incl. Metrics) | 28.64 KB |
| @sentry/browser (incl. Logs) | 28.86 KB |
| @sentry/browser (incl. Metrics & Logs) | 29.52 KB |
| @sentry/react | 29.33 KB |
| @sentry/react (incl. Tracing) | 48.29 KB |
| @sentry/vue | 33.24 KB |
| @sentry/vue (incl. Tracing) | 48.35 KB |
| @sentry/svelte | 27.59 KB |
| CDN Bundle | 29.88 KB |
| CDN Bundle (incl. Tracing) | 47.92 KB |
| CDN Bundle (incl. Logs, Metrics) | 31.42 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 49.23 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 69.92 KB |
| CDN Bundle (incl. Tracing, Replay) | 84.74 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 85.99 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 90.4 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 91.67 KB |
| CDN Bundle - uncompressed | 88.84 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 144.5 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 93.44 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 148.39 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 215.85 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 261.51 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 265.38 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 274.89 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 278.75 KB |
| @sentry/nextjs (client) | 50.76 KB |
| @sentry/sveltekit (client) | 46.45 KB |
| @sentry/core/server | 79.62 KB |
| @sentry/core/browser | 66.05 KB |
| @sentry/node-core | 62.36 KB |
| @sentry/node | 124.04 KB |
| @sentry/node (incl. diagnostics channel injection) | 167.15 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 166 B |
| @sentry/node/light | 50.76 KB |
| @sentry/node - without tracing | 73.88 KB |
| @sentry/aws-serverless | 82.81 KB |
| @sentry/cloudflare (withSentry) - minified | 199.94 KB |
| @sentry/cloudflare (withSentry) | 492.91 KB |
11.5.0
Important Changes
-
feat(core): Warn on repeated
Sentry.init()and unbind the client onclose()(#24962)Sentry.init()now warns when it runs while a client is still active. For now, the new client still replaces the active client, but the active client is not closed, so state from both can mix. CallSentry.init()once, or callawait Sentry.close()before you call it again.Sentry.close()now unbinds the client it closes, so afterclose(),getClient()returnsundefined,isInitialized()returnsfalse, and a laterinit()sets up a new client. In@sentry/cloudflare, later requests no longer reuse the isolate's cached client once it is closed or closing. On the server,@sentry/nextjsand@sentry/remixnow return the active client from a repeatedinit()call, notundefined.
Other Changes
- chore(deps): Bump rrweb to 2.44.1 (#25100)
- chore(deps): Bump web-vitals to 6.2.3 (#25062)
- feat(bun): keep server spans open until streaming responses finish (#25025)
- feat(langchain): Derive gen_ai.conversation.id from the invoke config (#24831)
- feat(nextjs): Add
code.file.pathtouse cachefill spans (#24988) - feat(react-router): Export createSentryServerInstrumentation from the Cloudflare entry (#25042)
- feat(remix): Parameterize Remix 3 navigation spans (#25045)
- feat(remix): Parameterize Remix 3 page load spans (#25053)
- feat(remix): Report the matched route on Remix 3 HTML responses (#25052)
- fix(ai): Normalize token usage and preserve cache breakdowns (#25074)
- fix(browser-utils): Handle NS_ERROR_NOT_INITIALIZED from setTimeout in Firefox (#25024)
- fix(bun): Add conversationIdIntegration to the default integrations (#25003)
- fix(cloudflare): Detect TypeSafe Jev calls in Workers AI by model ID (#25033)
- fix(cloudflare): Keep an installed OpenTelemetry async context strategy (#24995)
- fix(feedback): Correct overlapping screenshot annotations and drag dimming (#25040)
- fix(nextjs): Don't capture forbidden() and unauthorized() as errors (#25088)
- fix(nextjs): Include basePath in request url of Pages Router errors (#24985)
- fix(nextjs): Skip
initinside a request of@sentry/cloudflare(#24996) - fix(node): Flush telemetry before Vercel functions are suspended (#24910)
- fix(nuxt): Do not inject debug IDs into the SSR build (#25080)
- fix(react-router): Pass the project when creating a release (#25089)
- fix(remix): Pass the project when creating a release (#25079)
- fix(server-utils): Derive the Vercel AI conversation id from the OpenAI conversation option (#24979)
- fix(server-utils): Instrument the Vercel AI experimental_decide channel event (#25068)
- fix(server-utils): Map Flue messages and token usage to the gen_ai conventions (#24992)
- fix(server-utils): Record Vercel AI
experimental_telemetry.metadataon gen_ai spans (#24721) - fix(sveltekit): Export consoleLoggingIntegration from worker entry (#25061)
- fix(tanstackstart-react): Fix server route parametrization gaps (#25071)
- ref(core): Deprecate SEMANTIC_ATTRIBUTE_SENTRY_ORIGIN (#25039)
- ref(core): Remove
beforeSendSpannull return warning (#24129)
Internal Changes
- chore: Add external contributor to CHANGELOG.md (#25111)
- chore(bugbot): Flag hard-coded attribute names that have a conventions constant (#25070)
- chore(deps-dev): bump nx from 22.7.7 to 22.7.10 (#25075)
- chore(deps): Bump
@sentry/conventionsto 0.26.0 (#25073) - chore(github): Remove triage-issue workflow (#25098)
- chore(skills): Drop bundler-plugins cross-repo search from triage-issue skill (#25099)
- feat(deps): bump compression from 1.8.1 to 1.8.2 (#25109)
- feat(deps): Bump js-yaml from 3.15.1 to 3.15.2 (#24236)
- feat(deps): bump proxy-addr from 2.0.7 to 2.0.8 (#25077)
- feat(deps): bump shell-quote from 1.10.0 to 1.12.0 (#25108)
- feat(deps): bump source-map-js from 1.2.1 to 1.2.2 (#25076)
- feat(deps): Bump svgo from 4.0.2 to 4.1.0 (#24220)
- fix(deps): Bump seroval to 1.6.8 to fix two Dependabot alerts (#25104)
- ref: Reuse
isObjectLikefor object guards (#25058) - ref(browser): Use SENTRY_ORIGIN convention constant (#25037)
- ref(core): Use SENTRY_OP convention constant (#24982)
- ref(core): Use SENTRY_ORIGIN convention constant in shared tracing (#24983)
- ref(meta-frameworks): Use SENTRY_ORIGIN convention constant (#25038)
- ref(nextjs): Move the server span hooks into
serverSpanHooks.ts(#24997) - ref(server): Use SENTRY_ORIGIN convention constant (#25036)
- test(aws-serverless): Port GraphQL test to span streaming (#25056)
- test(browser): port general browser integration suites to default streaming (#24876)
- test(bun): Port request-body tests to span streaming (#25021)
- test(cloudflare): Add Workers AI tracing tests for Clef (#25027)
- test(e2e): Add Bun, Deno and Cloudflare variants to react-router-8-framework (#24598)
- test(e2e): Add eve test for Jev evaluate calls (#25034)
- test(e2e): Bump bundler plugins to 5.4.1 in e2e test apps (#25107)
- test(e2e): Cover isolation, trace propagation and logs on all react-router-8-framework runtimes (#25041)
- test(e2e): Move react-router-8-cloudflare MySQL tests into react-router-8-framework (#24599)
- test(e2e): Port Astro 5 Cloudflare to span streaming (#25016)
- test(e2e): Raise mock Sentry server chunk size to fit whole bundles (#25097)
- test(ember): Pin embroider packages away from broken releases (#25066)
- test(nextjs): Expect use cache route handler file path on Turbopack (#25117)
- test(nextjs): Pin nextjs-16-cf-workers latest variant to Next.js 16.3 (#25118)
- test(node): Port Apollo GraphQL integration tests to span streaming (#25030)
- test(node): port AWS integration tests to span streaming (#25018)
- test(node): port filesystem integration tests to span streaming (#25019)
- test(node): Port GraphQL tracing-channel t...
10.76.1
- chore(v10/deps): Bump rrweb to 2.44.1 (#25101)
- fix(v10/browser-utils): Handle NS_ERROR_NOT_INITIALIZED from setTimeout in Firefox (#25051)
- fix(v10/feedback): Correct overlapping screenshot annotations and drag dimming (#25046)
- fix(v10/nextjs): Include basePath in request url of Pages Router errors (#25064)
- fix(v10/nuxt): Do not inject debug IDs into the SSR build (#25094)
- fix(v10/sveltekit): Export consoleLoggingIntegration from worker entry (#25063)
- fix(v10/sveltekit): Resolve
@opentelemetry/apivia the SDK on SvelteKit 3 (#25105) - fix(v10/vue): Share one root render span debounce timer across components (#24887)
Internal Changes
Bundle size 📦
| Path | Size |
|---|---|
| @sentry/browser | 27.56 KB |
| @sentry/browser - with treeshaking flags | 26.04 KB |
| @sentry/browser (incl. Tracing) | 46.02 KB |
| @sentry/browser (incl. Tracing + Span Streaming) | 47.77 KB |
| @sentry/browser (incl. Tracing, Profiling) | 50.67 KB |
| @sentry/browser (incl. Tracing, Replay) | 84.51 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 74.35 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 89.12 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 101.46 KB |
| @sentry/browser (incl. Feedback) | 44.33 KB |
| @sentry/browser (incl. sendFeedback) | 32.25 KB |
| @sentry/browser (incl. FeedbackAsync) | 37.27 KB |
| @sentry/browser (incl. Metrics) | 28.62 KB |
| @sentry/browser (incl. Logs) | 28.84 KB |
| @sentry/browser (incl. Metrics & Logs) | 29.52 KB |
| @sentry/react | 29.32 KB |
| @sentry/react (incl. Tracing) | 48.28 KB |
| @sentry/vue | 33.24 KB |
| @sentry/vue (incl. Tracing) | 48.34 KB |
| @sentry/svelte | 27.58 KB |
| CDN Bundle | 29.87 KB |
| CDN Bundle (incl. Tracing) | 47.92 KB |
| CDN Bundle (incl. Logs, Metrics) | 31.41 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) | 49.21 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) | 69.91 KB |
| CDN Bundle (incl. Tracing, Replay) | 84.72 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) | 85.97 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 90.4 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) | 91.64 KB |
| CDN Bundle - uncompressed | 88.83 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 144.49 KB |
| CDN Bundle (incl. Logs, Metrics) - uncompressed | 93.43 KB |
| CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed | 148.38 KB |
| CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed | 215.84 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 261.5 KB |
| CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed | 265.37 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 274.88 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed | 278.74 KB |
| @sentry/nextjs (client) | 50.74 KB |
| @sentry/sveltekit (client) | 46.46 KB |
| @sentry/core/server | 79.23 KB |
| @sentry/core/browser | 65.7 KB |
| @sentry/node-core | 62.36 KB |
| @sentry/node | 123.6 KB |
| @sentry/node (incl. diagnostics channel injection) | 166.71 KB |
| @sentry/node/import (ESM hook with diagnostics-channel injection) | 166 B |
| @sentry/node/light | 50.75 KB |
| @sentry/node - without tracing | 73.85 KB |
| @sentry/aws-serverless | 82.82 KB |
| @sentry/cloudflare (withSentry) - minified | 199.86 KB |
| @sentry/cloudflare (withSentry) | 492.78 KB |