feat(node): Add support for winston logger (#15983)
Sentry is adding support for structured logging. In this release we've added support for sending logs to Sentry via the winston logger to the Sentry Node SDK (and SDKs that use the Node SDK under the hood like @sentry/nestjs). The Logging APIs in the Sentry SDK are still experimental and subject to change.
const winston = require('winston');
const Transport = require('winston-transport');
const transport = Sentry.createSentryWinstonTransport(Transport);
const logger = winston.createLogger({
transports: [transport],
});
feat(core): Add wrapMcpServerWithSentry to instrument MCP servers from @modelcontextprotocol/sdk (#16032)
The Sentry SDK now supports instrumenting MCP servers from the @modelcontextprotocol/sdk package. Compatible with versions ^1.9.0 of the @modelcontextprotocol/sdk package.
import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js';
// Create an MCP server
const server = new McpServer({
name: 'Demo',
version: '1.0.0',
});
// Use the instrumented server in your application
const instrumentedServer = Sentry.wrapMcpServerWithSentry(server);
feat(core): Move console integration into core and add to cloudflare/vercel-edge (#16024)
Console instrumentation has been added to @sentry/cloudflare and @sentry/nextjs Edge Runtime and is enabled by default. Now calls to the console object will be captured as breadcrumbs for those SDKs.
feat(bun): Support new Bun.serve APIs (#16035)
Bun 1.2.6 and above have a new Bun.serve API, which the Bun SDK now supports. The SDK instruments the new routes object that can be used to define routes for the server.
Thanks to @Jarred-Sumner for helping us get this supported!
browserTracingIntegration (#16042)beforeSendLog after we process log (#16019)unstable_sentryVitePluginOptions to cli instance (#16033)| Path | Size |
|---|---|
| @sentry/browser | 23.28 KB |
| @sentry/browser - with treeshaking flags | 23.12 KB |
| @sentry/browser (incl. Tracing) | 36.99 KB |
| @sentry/browser (incl. Tracing, Replay) | 74.17 KB |
| @sentry/browser (incl. Tracing, Replay) - with treeshaking flags | 67.55 KB |
| @sentry/browser (incl. Tracing, Replay with Canvas) | 78.83 KB |
| @sentry/browser (incl. Tracing, Replay, Feedback) | 90.65 KB |
| @sentry/browser (incl. Feedback) | 39.68 KB |
| @sentry/browser (incl. sendFeedback) | 27.9 KB |
| @sentry/browser (incl. FeedbackAsync) | 32.67 KB |
| @sentry/react | 25.09 KB |
| @sentry/react (incl. Tracing) | 38.91 KB |
| @sentry/vue | 27.51 KB |
| @sentry/vue (incl. Tracing) | 38.71 KB |
| @sentry/svelte | 23.32 KB |
| CDN Bundle | 24.51 KB |
| CDN Bundle (incl. Tracing) | 36.98 KB |
| CDN Bundle (incl. Tracing, Replay) | 72.03 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) | 77.18 KB |
| CDN Bundle - uncompressed | 71.47 KB |
| CDN Bundle (incl. Tracing) - uncompressed | 109.34 KB |
| CDN Bundle (incl. Tracing, Replay) - uncompressed | 220.63 KB |
| CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed | 233.16 KB |
| @sentry/nextjs (client) | 40.53 KB |
| @sentry/sveltekit (client) | 37.44 KB |
| @sentry/node | 143.33 KB |
| @sentry/node - without tracing | 96.47 KB |
| @sentry/aws-serverless | 120.77 KB |
Fetched March 31, 2026