Packages

@sentry/node-native

11.9.0 · 23 Oct 2026MIT286.8k / weekRepositoryHomepagenpmAtom feed

Your version

9.40.0

17 Jul 2025Where it was published

9.47.2 is the newest release of 9.x.

In short

1 deprecated3 new2 fixed4 changed

  • deprecated

    core: Deprecate logger in favor of debug

Release note

Important Changes

  • browser: Add debugId sync APIs between web worker and main thread

This release adds two Browser SDK APIs to let the main thread know about debugIds of worker files:

  • webWorkerIntegration({worker}) to be used in the main thread

  • registerWebWorker({self}) to be used in the web worker

// main.js
Sentry.init({...})

const worker = new MyWorker(...);

Sentry.addIntegration(Sentry.webWorkerIntegration({ worker }));

worker.addEventListener('message', e => {...});
// worker.js
Sentry.registerWebWorker({ self });

self.postMessage(...);
  • deprecated

    core: Deprecate logger in favor of debug

The internal SDK logger export from @sentry/core has been deprecated in favor of the debug export. debug only exposes log, warn, and error methods but is otherwise identical to logger. Note that this deprecation does not affect the logger export from other packages (like @sentry/browser or @sentry/node) which is used for Sentry Logging.

import { logger, debug } from '@sentry/core';

// before
logger.info('This is an info message');

// after
debug.log('This is an info message');
  • node: Add OpenAI integration

This release adds official support for instrumenting OpenAI SDK calls in with Sentry tracing, following OpenTelemetry semantic conventions for Generative AI. It instruments:

  • client.chat.completions.create() - For chat-based completions

  • client.responses.create() - For the responses API

// The integration respects your `sendDefaultPii` option, but you can override the behavior in the integration options

Sentry.init({
  dsn: '__DSN__',
  integrations: [
    Sentry.openAIIntegration({
      recordInputs: true, // Force recording prompts
      recordOutputs: true, // Force recording responses
    }),
  ],
});

Other Changes

  • node-core: Expand @opentelemetry/instrumentation range to cover 0.203.0

  • cloudflare: Ensure errors get captured from durable objects

  • sveltekit: Ensure server errors from streamed responses are sent

Work in this release was contributed by @0xbad0c0d3 and @tommy-gilligan. Thank you for your contributions!