@sentry/node
11.9.0 · 23 Oct 2026MIT36.1M / weekRepositoryHomepagenpmAtom feed
10.77.1 is the newest release of 10.x.
In short
7 new8 fixed20 internal
Release note
Important Changes
node-core: Add OTLP integration for node-core/light
Added
otlpIntegrationat@sentry/node-core/light/otlpfor users who manage
their own OpenTelemetry setup and want to send trace data to Sentry without
adopting the full@sentry/nodeSDK.import { NodeTracerProvider } from '@opentelemetry/sdk-trace-node'; import * as Sentry from '@sentry/node-core/light'; import { otlpIntegration } from '@sentry/node-core/light/otlp'; const provider = new NodeTracerProvider(); provider.register(); Sentry.init({ dsn: '__DSN__', integrations: [ otlpIntegration({ // Export OTel spans to Sentry via OTLP (default: true) setupOtlpTracesExporter: true, }), ], });The integration links Sentry errors to OTel traces and exports spans to Sentry via OTLP.
node, bun: Add runtime metrics integrations for Node.js and Bun (#19923, #19979)
New
nodeRuntimeMetricsIntegrationandbunRuntimeMetricsIntegrationautomatically collect runtime health metrics and send them to Sentry on a configurable interval (default: 30s). Collected metrics include memory (RSS, heap used/total), CPU utilization, event loop utilization, and process uptime. Node additionally collects event loop delay percentiles (p50, p99). Extra metrics like CPU time and external memory are available as opt-in.// Node.js import * as Sentry from '@sentry/node'; Sentry.init({ dsn: '...', integrations: [Sentry.nodeRuntimeMetricsIntegration()], }); // Bun import * as Sentry from '@sentry/bun'; Sentry.init({ dsn: '...', integrations: [Sentry.bunRuntimeMetricsIntegration()], });core: Support embedding APIs in google-genai
Adds instrumentation for the Google GenAI
embedContentAPI, creatinggen_ai.embeddingsspans.browser: Add
elementTimingIntegrationfor tracking element render and load timesThe new
elementTimingIntegrationcaptures Element Timing API data as Sentry metrics. It emitselement_timing.render_timeandelement_timing.load_timedistribution metrics for elements annotated with theelementtimingHTML attribute.import * as Sentry from '@sentry/browser'; Sentry.init({ dsn: '__DSN__', integrations: [Sentry.browserTracingIntegration(), Sentry.elementTimingIntegration()], });<img src="hero.jpg" elementtiming="hero-image" />
Other Changes
nuxt: Add middleware instrumentation compatibility for Nuxt 5
nuxt: Support parametrized SSR routes in Nuxt 5
solid: Add route parametrization for Solid Router
core: Guard nullish response in supabase PostgREST handler
node: Deduplicate
sentry-traceandbaggageheaders on outgoing requestsnode: Ensure startNewTrace propagates traceId in OTel environments
nuxt: Use virtual module for Nuxt pages data (SSR route parametrization)
opentelemetry: Convert seconds timestamps in span.end() to milliseconds
profiling: Disable profiling in worker threads
react-router: Disable debug ID injection in Vite plugin to prevent double injection
Internal Changes
browser-tests: Pin axios to 1.13.5 to avoid compromised 1.14.1