9.13.0
Important Changes
-
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
wrapMcpServerWithSentryto instrument MCP servers from@modelcontextprotocol/sdk(#16032)The Sentry SDK now supports instrumenting MCP servers from the
@modelcontextprotocol/sdkpackage. Compatible with versions^1.9.0of the@modelcontextprotocol/sdkpackage.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/cloudflareand@sentry/nextjsEdge 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.serveAPIs (#16035)Bun
1.2.6and above have a newBun.serveAPI, 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!
Other Changes
- feat(browser): Warn on duplicate
browserTracingIntegration(#16042) - feat(core): Allow delayed sending with offline transport (#15937)
- feat(deps): Bump @sentry/webpack-plugin from 3.2.4 to 3.3.1 (#16057)
- feat(vue): Apply stateTransformer to attachments in Pinia Plugin (#16034)
- fix(core): Run
beforeSendLogafter we process log (#16019) - fix(nextjs): Don't show turbopack warning for newer Next.js canaries (#16065)
- fix(nextjs): Include patch version 0 for min supported 15.3.0 (#16026)
- fix(node): Ensure late init works with all integrations (#16016)
- fix(react-router): Pass
unstable_sentryVitePluginOptionsto cli instance (#16033) - fix(serverless-aws): Overwrite root span name with GraphQL if set (#16010)
Bundle size 📦
| 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 |