@sentry/node
11.9.0 · 23 Oct 2026MIT36.1M / weekRepositoryHomepagenpmAtom feed
578 stable releases, newest first, by release line. Notes are quoted as the maintainers published them.
9.44.2
4 Aug 2025Reading the note…
9.44.1
4 Aug 2025Reading the note…
9.44.0
31 Jul 2025- deprecated
replay/v9: Deprecate
_experiments.autoFlushOnFeedback v9/core: Add shared
flushIfServerlessfunctionv9/react-router: Add
createSentryHandleError
- deprecated
replay/v9: Deprecate
_experiments.autoFlushOnFeedback v9/core: Add shared
flushIfServerlessfunctionv9/react-router: Add
createSentryHandleErrorv9/react-router: Automatically flush on serverless for loaders/actions
v9/react-router: Automatically flush on serverless for request handler
v9/astro: Construct parametrized route during runtime
v9/nextjs: Flush in route handlers
v9/node: Fix exports for openai instrumentation
9.43.0
29 Jul 2025v9/core: Add MCP server instrumentation
v9/meta: Unify detection of serverless environments and add Cloud Run
v9/node: Add mechanism to
fastifyIntegrationerror handler
v9/core: Add MCP server instrumentation
v9/meta: Unify detection of serverless environments and add Cloud Run
v9/node: Add mechanism to
fastifyIntegrationerror handlerv9/replay: Fix re-sampled sessions after a click
9.42.1
28 Jul 2025Reading the note…
9.42.0
25 Jul 2025v9/aws: Detect SDK source for AWS Lambda layer
v9/core: Fix OpenAI SDK private field access by binding non-instrumented fns
v9/core: Update ai.response.object to gen_ai.response.object
v9/aws: Detect SDK source for AWS Lambda layer
v9/core: Fix OpenAI SDK private field access by binding non-instrumented fns
v9/core: Update ai.response.object to gen_ai.response.object
v9/nextjs: Update stackframe calls for next v15.5
9.41.0
24 Jul 2025- deprecated
v9/core: Deprecate experimental
enableLogsandbeforeSendLogoption astro: Implement parameterized routes
v9/node: Add shouldHandleError option to fastifyIntegration
Important Changes
- deprecated
v9/core: Deprecate experimental
enableLogsandbeforeSendLogoption
Sentry now has support for structured logging. Previously to enable structured logging, you had to use the
_experiments.enableLogsand_experiments.beforeSendLogoptions. These options have been deprecated in favor of the top-levelenableLogsandbeforeSendLogoptions.// before Sentry.init({ _experiments: { enableLogs: true, beforeSendLog: log => { return log; }, }, }); // after Sentry.init({ enableLogs: true, beforeSendLog: log => { return log; }, });astro: Implement parameterized routes
feat(v9/astro): Parametrize dynamic server routes
feat(v9/astro): Parametrize routes on client-side
Server-side and client-side parameterized routes are now supported in the Astro SDK. No configuration changes are required.
Other Changes
v9/node: Add shouldHandleError option to fastifyIntegration
fix(v9/cloudflare) Allow non UUID workflow instance IDs
v9/node: Ensure tool errors for
vercelAiIntegrationhave correct tracev9/remix: Ensure source maps upload fails silently if Sentry CLI fails
v9/svelte: Do not insert preprocess code in script module in Svelte 5
Work in this release was contributed by @richardjelinek-fastest. Thank you for your contribution!
9.40.0
17 Jul 2025- deprecated
core: Deprecate logger in favor of debug
browser: Add debugId sync APIs between web worker and main thread
webWorkerIntegration({worker})to be used in the main thread
Important Changes
browser: Add debugId sync APIs between web worker and main thread
This release adds two Browser SDK APIs to let the main thread know about debugIds of worker files:
webWorkerIntegration({worker})to be used in the main threadregisterWebWorker({self})to be used in the web worker
// main.js Sentry.init({...}) const worker = new MyWorker(...); Sentry.addIntegration(Sentry.webWorkerIntegration({ worker })); worker.addEventListener('message', e => {...});// worker.js Sentry.registerWebWorker({ self }); self.postMessage(...);- deprecated
core: Deprecate logger in favor of debug
The internal SDK
loggerexport from@sentry/corehas been deprecated in favor of thedebugexport.debugonly exposeslog,warn, anderrormethods but is otherwise identical tologger. Note that this deprecation does not affect theloggerexport from other packages (like@sentry/browseror@sentry/node) which is used for Sentry Logging.import { logger, debug } from '@sentry/core'; // before logger.info('This is an info message'); // after debug.log('This is an info message');node: Add OpenAI integration
This release adds official support for instrumenting OpenAI SDK calls in with Sentry tracing, following OpenTelemetry semantic conventions for Generative AI. It instruments:
client.chat.completions.create()- For chat-based completionsclient.responses.create()- For the responses API
// The integration respects your `sendDefaultPii` option, but you can override the behavior in the integration options Sentry.init({ dsn: '__DSN__', integrations: [ Sentry.openAIIntegration({ recordInputs: true, // Force recording prompts recordOutputs: true, // Force recording responses }), ], });Other Changes
node-core: Expand
@opentelemetry/instrumentationrange to cover0.203.0cloudflare: Ensure errors get captured from durable objects
sveltekit: Ensure server errors from streamed responses are sent
Work in this release was contributed by @0xbad0c0d3 and @tommy-gilligan. Thank you for your contributions!
9.39.0
15 Jul 2025browser: Add
afterStartPageloadSpanhook to improve spanId assignment on web vital spansnextjs: Client-side parameterized routes
node: Drop 401-404 and 3xx status code spans by default
Important Changes
browser: Add
afterStartPageloadSpanhook to improve spanId assignment on web vital spans
This PR adds a new afterStartPageloadSpan lifecycle hook to more robustly assign the correct pageload span ID to web vital spans, replacing the previous unreliable "wait for a tick" approach with a direct callback that fires when the pageload span becomes available.
nextjs: Client-side parameterized routes
This PR implements client-side parameterized routes for Next.js by leveraging an injected manifest within the existing app-router instrumentation to automatically parameterize all client-side transactions (e.g.
users/123andusers/456now become becomeusers/:id).node: Drop 401-404 and 3xx status code spans by default
This PR changes the default behavior in the Node SDK to drop HTTP spans with 401-404 and 3xx status codes by default to reduce noise in tracing data.
Other Changes
core: Prepend vercel ai attributes with
vercel.ai.Xnextjs: Add
disableSentryWebpackConfigflagnextjs: Build app manifest
nextjs: Inject manifest into client for turbopack builds
nextjs: Inject manifest into client for webpack builds
node-native: Add option to disable event loop blocked detection
react-router: Ensure http.server route handling is consistent
core: Avoid prolonging idle span when starting standalone span
core: Remove side-effect from
tracing/errors.tscore: Wrap
beforeSendLoginconsoleSandboxnode-core: Apply correct SDK metadata
react-router: Ensure that all browser spans have
source=route
Work in this release was contributed by @janpapenbrock. Thank you for your contribution!
9.38.0
11 Jul 2025Reading the note…
9.37.0
10 Jul 2025Reading the note…
9.36.0
9 Jul 2025Reading the note…
9.35.0
4 Jul 2025Reading the note…
9.34.0
1 Jul 2025Reading the note…
9.33.0
27 Jun 2025Reading the note…
9.32.0
25 Jun 2025Reading the note…
9.31.0
23 Jun 2025Reading the note…
9.30.0
17 Jun 2025Reading the note…
9.29.0
13 Jun 2025Reading the note…
9.28.1
11 Jun 2025Reading the note…
9.28.0
10 Jun 2025Reading the note…
9.27.0
5 Jun 2025Reading the note…
9.26.0
4 Jun 2025Reading the note…
9.25.1
3 Jun 2025Reading the note…
9.25.0
3 Jun 2025Reading the note…
9.24.0
30 May 2025Reading the note…
9.23.0
28 May 2025Reading the note…
9.22.0
20 May 2025Reading the note…
9.21.0
20 May 2025Reading the note…
9.20.0
19 May 2025Reading the note…
9.19.0
14 May 2025Reading the note…
9.18.0
13 May 2025Reading the note…
9.17.0
8 May 2025Reading the note…
9.16.1
7 May 2025Reading the note…
9.16.0
7 May 2025Reading the note…
9.15.0
29 Apr 2025Reading the note…
9.14.0
23 Apr 2025Reading the note…
9.13.0
16 Apr 2025Reading the note…
9.12.0
8 Apr 2025Reading the note…
9.11.0
3 Apr 2025Reading the note…
9.10.1
28 Mar 2025Reading the note…
9.10.0
27 Mar 2025Reading the note…
9.9.0
24 Mar 2025Reading the note…
9.8.0
21 Mar 2025Reading the note…
9.7.0
20 Mar 2025Reading the note…
9.6.1
19 Mar 2025Reading the note…
9.6.0
17 Mar 2025Reading the note…
9.5.0
6 Mar 2025Reading the note…
9.4.0
5 Mar 2025Reading the note…
9.3.0
28 Feb 2025Reading the note…