|
10 | 10 |
|
11 | 11 | - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
|
12 | 12 |
|
| 13 | +## 9.13.0 |
| 14 | + |
| 15 | +### Important Changes |
| 16 | + |
| 17 | +- **feat(node): Add support for winston logger ([#15983](https://github.com/getsentry/sentry-javascript/pull/15983))** |
| 18 | + |
| 19 | + Sentry is adding support for [structured logging](https://github.com/getsentry/sentry-javascript/discussions/15916). In this release we've added support for sending logs to Sentry via the [winston](https://github.com/winstonjs/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. |
| 20 | + |
| 21 | + ```js |
| 22 | + const winston = require('winston'); |
| 23 | + const Transport = require('winston-transport'); |
| 24 | + |
| 25 | + const transport = Sentry.createSentryWinstonTransport(Transport); |
| 26 | + |
| 27 | + const logger = winston.createLogger({ |
| 28 | + transports: [transport], |
| 29 | + }); |
| 30 | + ``` |
| 31 | + |
| 32 | +- **feat(core): Add `wrapMcpServerWithSentry` to instrument MCP servers from `@modelcontextprotocol/sdk` ([#16032](https://github.com/getsentry/sentry-javascript/pull/16032))** |
| 33 | + |
| 34 | + The Sentry SDK now supports instrumenting MCP servers from the `@modelcontextprotocol/sdk` package. Compatible with versions `^1.9.0` of the `@modelcontextprotocol/sdk` package. |
| 35 | + |
| 36 | + ```js |
| 37 | + import { McpServer } from '@modelcontextprotocol/sdk/server/mcp.js'; |
| 38 | + |
| 39 | + // Create an MCP server |
| 40 | + const server = new McpServer({ |
| 41 | + name: 'Demo', |
| 42 | + version: '1.0.0', |
| 43 | + }); |
| 44 | + |
| 45 | + // Use the instrumented server in your application |
| 46 | + const instrumentedServer = Sentry.wrapMcpServerWithSentry(server); |
| 47 | + ``` |
| 48 | + |
| 49 | +- **feat(core): Move console integration into core and add to cloudflare/vercel-edge ([#16024](https://github.com/getsentry/sentry-javascript/pull/16024))** |
| 50 | + |
| 51 | + 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. |
| 52 | + |
| 53 | +- **feat(bun): Support new `Bun.serve` APIs ([#16035](https://github.com/getsentry/sentry-javascript/pull/16035))** |
| 54 | + |
| 55 | + 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. |
| 56 | + |
| 57 | + Thanks to @Jarred-Sumner for helping us get this supported! |
| 58 | + |
| 59 | +### Other Changes |
| 60 | + |
| 61 | +- feat(browser): Warn on duplicate `browserTracingIntegration` ([#16042](https://github.com/getsentry/sentry-javascript/pull/16042)) |
| 62 | +- feat(core): Allow delayed sending with offline transport ([#15937](https://github.com/getsentry/sentry-javascript/pull/15937)) |
| 63 | +- feat(deps): Bump @sentry/webpack-plugin from 3.2.4 to 3.3.1 ([#16057](https://github.com/getsentry/sentry-javascript/pull/16057)) |
| 64 | +- feat(vue): Apply stateTransformer to attachments in Pinia Plugin ([#16034](https://github.com/getsentry/sentry-javascript/pull/16034)) |
| 65 | +- fix(core): Run `beforeSendLog` after we process log ([#16019](https://github.com/getsentry/sentry-javascript/pull/16019)) |
| 66 | +- fix(nextjs): Don't show turbopack warning for newer Next.js canaries ([#16065](https://github.com/getsentry/sentry-javascript/pull/16065)) |
| 67 | +- fix(nextjs): Include patch version 0 for min supported 15.3.0 ([#16026](https://github.com/getsentry/sentry-javascript/pull/16026)) |
| 68 | +- fix(node): Ensure late init works with all integrations ([#16016](https://github.com/getsentry/sentry-javascript/pull/16016)) |
| 69 | +- fix(react-router): Pass `unstable_sentryVitePluginOptions` to cli instance ([#16033](https://github.com/getsentry/sentry-javascript/pull/16033)) |
| 70 | +- fix(serverless-aws): Overwrite root span name with GraphQL if set ([#16010](https://github.com/getsentry/sentry-javascript/pull/16010)) |
| 71 | + |
13 | 72 | ## 9.12.0
|
14 | 73 |
|
15 | 74 | ### Important Changes
|
|
0 commit comments