@sentry/node
11.9.0 · 23 Oct 2026MIT36.1M / weekRepositoryHomepagenpmAtom feed
10.77.1 is the newest release of 10.x.
In short
10 new5 fixed1 changed12 internal
Security
1 advisory affects 10.13.0; 10.27.0 fixes them
- ModerateSentry's sensitive headers are leaked when `sendDefaultPii` is set to `true`GHSA-6465-jgvq-jhgp · 24 Nov 2025Fixed in 10.27.0
Release note
Important Changes
browser: Add option to explicitly end pageload span via
reportPageLoaded()With this release you can take manual control of ending the pageload span. Usually this span is ended automatically by the SDK, based on a period of inactivity after the initial page was loaded in the browser. If you want full control over the pageload duration, you can tell Sentry, when your page was fully loaded:
Sentry.init({ //... integrations: [ // 1. Enable manual pageload reporting Sentry.browserTracingIntegration({ enableReportPageLoaded: true }), ], }); // 2. Whenever you decide the page is loaded, call: Sentry.reportPageLoaded();Note that if
Sentry.reportPageLoaded()is not called within 30 seconds of the initial pageload (or whatever value thefinalTimeoutoption is set to), the pageload span will be ended automatically.core,node: Add instrumentation for
GoogleGenAIThe SDK now automatically instruments the
@google/genaipackage to provide insights into your AI operations.nextjs: Promote
useRunAfterProductionCompileHookto non-experimental build optionThe
useRunAfterProductionCompileHookoption is no longer experimental and is now a stable build option for Next.js projects.nextjs: Use
afterProductionCompilehook for webpack buildsNext.js projects using webpack can opt-in to use the
useRunAfterProductionCompileHookhook for source map uploads.nextjs: Flip default value for
useRunAfterProductionCompileHookfor Turbopack buildsThe
useRunAfterProductionCompileHookoption is now enabled by default for Turbopack builds, enabling automated source map uploads.node: Do not drop 300 and 304 status codes by default
HTTP transactions with 300 and 304 status codes are now captured by default, providing better visibility into redirect and caching behavior.
Other Changes
core: Add logger to core and allow scope to be passed log methods
core: Allow to pass
onSuccesstohandleCallbackErrorscore: Create template attributes in
consoleLoggingIntegrationnode: Add extra platforms to
oscontextbrowser: Ensure idle span duration is adjusted when child spans are ignored
core: Ensure builtin stack frames don't affect
thirdPartyErrorFilterIntegrationcore: Fix client hook edge cases around multiple callbacks
nextjs: Enable fetch span when OTel setup is skipped
node: Fix
thiscontext for vercel AI instrumentation
Internal Changes
Revert "[Gitflow] Merge master into develop"
Work in this release was contributed by @Olexandr88. Thank you for your contribution!