@sentry/node
11.9.0 · 23 Oct 2026MIT36.1M / weekRepositoryHomepagenpmAtom feed
Where each line stands
Plan an upgradeLatest releases
All 578 releases- 11.x · latest line
11.9.0
23 Oct 2026Rename
diagnostic_channel, fetch and gRPC span originsSome span origins changed their names to match the other v11 origins:
If you have
ignoreSpansrules, queries or alerts on the old origins, change them to use the new origins.deno: Add incoming request options to
denoServeIntegrationdenoServeIntegrationnow 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.deno: Record request sessions for
Deno.servedenoServeIntegrationnow 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.
Important Changes
Rename
diagnostic_channel, fetch and gRPC span originsSome 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.deno: Add incoming request options to
denoServeIntegrationdenoServeIntegrationnow 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.deno: Record request sessions for
Deno.servedenoServeIntegrationnow 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.deno: Register channel injection hooks from
init()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/*.nextjs: Add a tunnel route handler that sends only the event payload to Sentry
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.
nextjs: Never emit trace meta tags from a prerender
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.nextjs: Send tunnel route requests with
credentials: 'omit'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' } }, });nitro: Report a single
http.serverspan per requestA 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.Use
auto.http.http_serverorigin for allnode:httpserver spansOn 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
browser: Add
LoaderSentrytype exportcloudflare: Add
isStreamingResponseoption and detect streamed RSC responsescore: Add
dataCollection.mcpoptioncore: Limit the body size of tunnel requests
nextjs: Link
use cachehits to their fill across instancesnextjs: Wait for the resumed part of a document before starting the pageload
nitro: Merge the nitro integrations into a single
nitroIntegrationserver-utils: Emit
execute_toolspans for Anthropic'sbeta.messages.toolRunner()astro: Defer to
@sentry/cloudflare/viteon Cloudflare Workersaws-serverless: End the
function.awsspan when a callback-style handler calls backbrowser: Skip profiling for unsampled active root spans
bundler-plugins: Check
globalThisbeforeglobalin the injected snippetbundler-plugins: Inject the release only into chunks that load at startup
cloudflare: auto-instrument a re-exported default export
cloudflare: Deliver check-ins and events from forked isolation scopes
cloudflare: Don't hold Durable Object invocations open with the segment-end flush timer
cloudflare: Keep default exports intact when auto-instrumenting
core: Use
trace_metricdata category for metrics rate limits and client reportsdeno: Re-export portable helpers that Cloudflare exposes
elysia: Set SDK metadata on the options passed to init
elysia: Use Node transport on Node runtimes
hono: Read connection info from the runtime instead of Hono helpers
nextjs: Only inject applicationKey metadata into browser bundles
nitro: Use forward slashes for resolved plugin paths on Windows
node,vercel-edge,bundler-plugins: Ignore commit env vars set to their own name
node: Guard user callbacks in the
node:httpserver instrumentationnode: Only read JavaScript and TypeScript source files in ContextLines
node: Restore tsx runtime instrumentation
nuxt: Delete Sentry-enabled source maps from Nitro output directories
nuxt: Keep sourcesContent in Nuxt 5 server source maps
react: Don't crash ErrorBoundary when
error.causeis not an Errorreact: Match React Router navigations against root routes only
server-runtime-injection: Load ESM hook without the build/esm package.json marker
server-utils: Bundle the CommonJS dependencies of instrumented packages on Vite 8
server-utils: Keep OpenAI decision confidence on Vercel AI decide spans
server-utils: Nest LangChain run spans under their parent run
server-utils: Stop the orchestrion Vite plugin from bundling the CJS build of @sentry/server-utils
solidstart: Read server action route from the request's root span
tanstackstart-react: Delete only the source maps that Sentry enabled
vercel-edge: Expose portable tracing and feature flag helpers
Internal Changes
Work in this release was contributed by @4ktLuffy, @adityareddy-dev, @dasilvaluis, @faizansaiyed123, @jpdefo, @Jxxunnn, @mikamikasuki, @philipatkinson, @rubas, and @Shubham-Padkonde. Thank you for your contributions!
bun: Add incoming request options and request sessions to
bunServerIntegrationbunServerIntegrationnow 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.node: Add
onSpanEndtohttpIntegrationhttpIntegrationandhttpServerSpansIntegrationnow 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.bun: Inject debug IDs and upload source maps in
sentryBunPluginsentryBunPluginfrom@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.
11.8.0
15 Oct 2026bundler-plugins: Release
@sentry/webpack-plugin,@sentry/vite-plugin,@sentry/rollup-pluginand@sentry/esbuild-pluginfrom the SDK repositoryThe 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:server-utils: Instrument the OpenAI decisions API as
gen_ai.decidespansOpenAI
decisions.createcalls now creategen_ai.decidespans.core: Support SuppressedError in LinkedErrors integration
Important Changes
bundler-plugins: Release
@sentry/webpack-plugin,@sentry/vite-plugin,@sentry/rollup-pluginand@sentry/esbuild-pluginfrom the SDK repositoryThe 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.
server-utils: Instrument the OpenAI decisions API as
gen_ai.decidespansOpenAI
decisions.createcalls now creategen_ai.decidespans.
Other Changes
core: Support SuppressedError in LinkedErrors integration
astro: Delete generated source maps for static output
astro: Upload source maps of Astro 7's prerender build
browser: Apply
urlQueryParamsto the Referer headercloudflare: auto-instrument when wrangler
mainis a packagehono: Expose runtime-specific SDK options
node: Instrument Prisma 8 CollectionBase from rc.15
nuxt: Skip 3xx/4xx Nuxt errors in the vue:error hook
server-utils: Read pi-durable 1.2.0 tool results from
outputserver-utils: Transform modules once when two Sentry Vite plugins add orchestrion
sveltekit: Add op and origin to Kit's
sveltekit.endpointspantanstackstart-react: Keep parametrized route names in Nitro 3 builds
tanstackstart-react: Rewrite source paths of split route modules
Internal Changes
license: Add cli FSL notice to package licenses
Work in this release was contributed by @kunal649 and @mketiku. Thank you for your contributions!
11.7.0
12 Oct 2026cloudflare: Add opt-in cron monitoring for Cron Triggers
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.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.node: Stop sending the process session once request sessions are tracked
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.
Important Changes
cloudflare: Add opt-in cron monitoring for Cron Triggers
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.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.node: Stop sending the process session once request sessions are tracked
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.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.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.urlthe
browser.*andresource.*span names withtraceLifecycle: 'static'the LCP URL attributes
lcp.urlandbrowser.web_vital.lcp.urlthe 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.nextjs: Apply top-level
bundleSizeOptimizationsto webpack and Turbopack buildsThe 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
nuxt: Detect the server API with
@nuxt/kit4.6bundler-plugins: Escape JSON in generated injection code
core: Don't mark http client spans as errors when the caller aborts
core: Record
spanclient report outcomes when discarding transactionscore: Record client outcomes when beforeSend callbacks return invalid values
core: Record span outcomes for spans dropped when building a transaction
core: Report actual item count in client reports of envelope send failures
core: Strip internal custom span name from streamed spans
nextjs: Filter query parameters in request error context
node: Don't mark fetch spans as errors when the caller aborts
nuxt: Delete public source maps before Nitro lists its public assets
nuxt: Keep
@sentry/server-runtime-injectionexternal on Nitro v3nuxt: Remove @opentelemetry/resources dev alias
profiling-node: Stop the trace lifecycle profiler when spans are unsampled
react-router: Respect custom default integrations
remix: Respect custom default integrations
server-utils: Avoid quadratic SQL summary regex backtracking
server-utils: End Express layer spans when the client aborts
server-utils: Record amqplib consumer info before the first delivery and instrument the callback API
server-utils: Stop treating previous_response_id as the OpenAI conversation id
sveltekit: Read load event pathname untracked
sveltekit: Stop adapter-node 6 output dir probe from deleting the build
Internal Changes
Work in this release was contributed by @Philip-Nwabuwa and @4ktLuffy. Thank you for your contributions!
Dependency tracking · free for 3 projects
Know when your own dependencies move
@sentry/node had 1 security advisory in the last 12 months. Inlinr emails you the day one touches a project of yours, with the version that fixes it.
Advisories reach you
An email when a critical or high advisory affects a project, before the next install.
Upgrades checked first
Peer ranges, Node, ESM-only and types changes read before you bump.
Only what matters
Majors and breaking notes stay; patches and sibling bumps fold into one line.
Registry facts last checked 28 Oct 2026. Releases and advisories last read 28 Oct 2026.