@sentry/node
11.9.0 · 23 Oct 2026MIT36.1M / weekRepositoryHomepagenpmAtom feed
10.77.1 is the newest release of 10.x.
In short
17 new18 fixed36 internal
Release note
Important Changes
core: Support array attributes for spans, logs, and metrics
Arrays of primitive values (
string,number,boolean) are now accepted as attribute values. Arrays containing non-primitive elements will be dropped and won't show up in Sentry. Array attributes on logs and metrics were previously stringified and will now be sent as actual arrays instead. If you have custom rules that process attribute values in anybeforeSend*callbacks (e.g., data scrubbing), you may need to update them to correctly handle array values.For instance, here's how you can update a
beforeSendLogcallback to handle arrays:beforeSendLog: log => { const attributes = log.attributes; Object.keys(attributes).forEach(key => { const value = attributes[key]; if (typeof value === 'string') { attributes[key] = scrubData(value); } if (Array.isArray(value)) { attributes[key] = value.map(v => (typeof v === 'string' ? scrubData(v) : v)); } }); return log; };browser: Add
fetchStreamPerformanceIntegrationfor streamed response trackingA new integration that tracks the performance of streamed fetch responses. Use this to measure time-to-first-byte and streaming duration for APIs that return chunked/streamed data. This replaces the now deprecated
trackFetchStreamPerformanceoption.core: Add
dataCollectionclient optionAdds a new
dataCollectionclient option for controlling what data the SDK collects and sends to Sentry. This provides a centralized way to configure data collection behavior across different SDK features. In the future, this option will be used for fine-granular data filtering, while the simplesendDefaultPiiboolean option will be deprecated and removed in a future release.hono: Add
hono.requestspans for internal.request()callsThe Hono SDK now creates spans for internal
.request()calls, providing better visibility into request handling within Hono applications.
Other Changes
core: Add data collection filtering utilities
core: Convert scope contexts to segment span attributes in span streaming
core: Emit
sentry.sdk.integrationson streamed segment spanscore: HTTP server diagnostics channel utility
core: Migrate span streaming envelope to
dataCollectioncore: Migrate Supabase integration to
dataCollectioncore: Migrate trpc to
dataCollectiondeno: Instrument
node:httpon versions that support itember: Extract ember-specific logic into custom
browserTracingIntegrationlogs: Migrate log envelope user inference to
dataCollectionnuxt: Allow custom configuration files paths in Nuxt module
replay: Update example worker script
serverless: Add server-only context span attributes via processSegmentSpan hooks
astro: Avoid injecting meta tags into
<head>inside attribute valuesastro: Use explicit ResponseInit when injecting meta tags in response
browser: Add a synthetic stack trace to DOMException with empty stack traces if
attachStacktraceis truebrowser: Fix internal frame detection in minified bundles
cloudflare: Avoid repeated flush lock wrapping
cloudflare: Skip SDK initialization for OPTIONS/HEAD requests
cloudflare, vercel-edge: Disable timer-based flush for serverless runtimes
core: Sanitize lone surrogates in log body and attributes
deno: Support
Deno.serveinstrumentation on Deno 2.8hono: Preserve middleware handler metadata
hono: Use generic Hono type in Bun/Node
nextjs: Widen
projectoption type tostring | stringnode: Improve
http.clientdouble-wrap messagenode: Preserve CallbackManager handlers in LangChain instrumentation
react-router: Do not re-write origin on router state changes
replay: Set
sentry.replay_idattribute on streamed spansreplay: Set
replay_idon DSC after buffer-to-session conversionsolidstart: Use nitro module for build hooks to preserve preset hooks
Internal Changes
Work in this release was contributed by @abcang, @ahmadio, @delorge, @mdnanocom, and @victorgarciaesgi. Thank you for your contributions!