@sentry/node
11.9.0 · 23 Oct 2026MIT36.1M / weekRepositoryHomepagenpmAtom feed
10.77.1 is the newest release of 10.x.
In short
15 new8 fixed36 internal
Release note
Important Changes
cloudflare: Add
nodejs_compatentrypointThe Cloudflare SDK now ships a dedicated
@sentry/cloudflare/nodejs_compatentrypoint for Workers running with thenodejs_compatflag. This entrypoint unlocks Node SDK features on Cloudflare, including theprismaIntegration(#21882) and AI v7 support for thevercelAiIntegration(#21917).This entrypoint is a drop-in replacement, so you can switch your imports from
@sentry/cloudflaredirectly to@sentry/cloudflare/nodejs_compat. To use it, your Worker must set thenodejs_compatcompatibility flag inwrangler.toml/wrangler.jsonc. This will become the default entrypoint in v11.Use Sentry's minimal OpenTelemetry tracer provider by default (#21666, #21680, #21842)
The Node SDK now registers Sentry's own minimal
SentryTracerProviderby default, which creates native Sentry spans directly instead of routing them through the full OpenTelemetry SDK span pipeline. This reduces overhead for the common case where you don't need the full OpenTelemetry tracing stack.If you rely on OpenTelemetry SDK features that the minimal provider doesn't support, you can opt out and fall back to the full OpenTelemetry
BasicTracerProviderby settingopenTelemetryBasicTracerProvider: truein yourSentry.init()options. Providing customopenTelemetrySpanProcessorsalso forces the full provider automatically.
Other Changes
bun,deno,node: Pg orchestrion instrumentation
bun: Enable new mysql, pg integrations in 'bun build'
cloudflare: Enable AI v7 support for Cloudflare in the /nodejs_compat entrypoint
cloudflare: Expose prismaIntegration in nodejs_compat export
core: Add
sentry.trace_lifecycleattributecore: Add deferred segment-span transaction capture
mongoose: Instrument mongoose >= 9.7 via native tracing channels
replays: Record segment names that occur during replay
browser: Accept precisely-typed GrowthBook class in growthbookIntegration
browser: Flush telemetry when page is hidden
cloudflare: Catch potential errors during flush and dispose
core: Capture Anthropic stream stop_reason from message_delta
core: Print getTraceMetaTags in 1 line to prevent hydration errors
nextjs: Add immutable browser chunks to upload assets
nextjs: Handle
Middleware.executeroot spans on Node.js runtimereact/solid/vue: Instrument TanStack Router navigations via
onBeforeLoad/onResolved
Internal Changes
server-utils: Implement orchestrion-based instrumentation for vercel-ai v6
server-utils: Migrate
@opentelemetry/instrumentation-ioredisto orchestrionserver-utils: Migrate Anthropic integration to orchestrion
server-utils: Migrate OpenAI integration to orchestrion
server-utils: Rewrite
@opentelemetry/instrumentation-hapito orchestrion
Work in this release was contributed by @codr and @zenato. Thank you for your contribution!