Packages

@sentry/node

11.9.0 · 23 Oct 2026MIT36.1M / weekRepositoryHomepagenpmAtom feed

Your version

9.12.0

8 Apr 2025Where it was published

9.47.2 is the newest release of 9.x.

In short

9 new1 fixed1 changed2 internal

Release note

Important Changes

  • feedback: Implement highlighting and hiding controls for screenshots

    The Sentry SDK now supports highlighting and hiding controls for screenshots in user feedback reports. This functionality is enabled by default.

  • node: Add ignoreIncomingRequestBody callback to httpIntegration

    The httpIntegration now supports an optional ignoreIncomingRequestBody callback that can be used to skip capturing the body of incoming requests.

    Sentry.init({
      integrations: [
        Sentry.httpIntegration({
          ignoreIncomingRequestBody: (url, request) => {
            return request.method === 'GET' && url.includes('/api/large-payload');
          },
        }),
      ],
    });

    The ignoreIncomingRequestBody callback receives the URL of the request and should return true if the body should be ignored.

  • Logging Improvements

    Sentry is adding support for structured logging. In this release we've made a variety of improvements to logging functionality in the Sentry SDKs.

    • feat(node): Add server.address to nodejs logs

    • feat(core): Add sdk name and version to logs

    • feat(core): Add sentry origin attribute to console logs integration

    • fix(core): Do not abbreviate message parameter attribute

    • fix(core): Prefix release and environment correctly

    • fix(node): Make log flushing logic more robust

Other Changes

  • astro: Add tracking of errors during HTML streaming

  • browser: Add onRequestSpanStart hook to browser tracing integration

  • nextjs: Add captureRouterTransitionStart hook for capturing navigations

  • nextjs: Mark clientside prefetch request spans with http.request.prefetch: true attribute

  • nextjs: Un experimentify clientInstrumentationHook

  • nextjs: Warn when client was initialized more than once

  • node: Add support for SENTRY_DEBUG env variable

  • tss-react: Change authToken type to string

Work in this release was contributed by @Page- and @Fryuni. Thank you for your contributions!