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 threadregisterWebWorker({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(...);
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');
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 completionsclient.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
}),
],
});
@opentelemetry/instrumentation range to cover 0.203.0 (#17043)Work in this release was contributed by @0xbad0c0d3 and @tommy-gilligan. Thank you for your contributions!
| Path | Size |
|---|---|
| @sentry/browser | 23.23 KB |
| @sentry/browser - with treeshaking flags | 21.82 KB |
| @sentry/browser (incl. Tracing) | 38.73 KB |
| @sentry/browser (incl. Tracing, Replay) | 75.96 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 66 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 80.56 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 92.37 KB |
| @sentry/browser (incl. Feedback) | 39.53 KB |
| @sentry/browser (incl. sendFeedback) | 27.8 KB |
| @sentry/browser (incl. FeedbackAsync) | 32.58 KB |
| @sentry/react | 24.94 KB |
| @sentry/react (incl. Tracing) | 40.64 KB |
| @sentry/vue | 27.57 KB |
| @sentry/vue (incl. Tracing) | 40.48 KB |
| @sentry/svelte | 23.25 KB |
| CDN Bundle | 24.59 KB |
| CDN Bundle (incl. Tracing) | 38.49 KB |
| CDN Bundle (incl. Tracing, Replay) | 73.65 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 78.99 KB |
| CDN Bundle - uncompressed | 71.72 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 114.12 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 225.58 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 238.1 KB |
| @sentry/nextjs (client) | 42.64 KB |
| @sentry/sveltekit (client) | 39.14 KB |
| @sentry/node | 165.02 KB |
| @sentry/node - without tracing | 97.85 KB |
| @sentry/aws-serverless | 125.35 KB |
Fetched March 31, 2026