|
10 | 10 |
|
11 | 11 | - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
|
12 | 12 |
|
| 13 | +## 9.16.0 |
| 14 | + |
| 15 | +### Important changes |
| 16 | + |
| 17 | +- **feat: Create a Vite plugin that injects sentryConfig into the global config ([#16197](https://github.com/getsentry/sentry-javascript/pull/16197))** |
| 18 | + |
| 19 | +Add a new plugin `makeConfigInjectorPlugin` within our existing vite plugin that updates the global vite config with sentry options |
| 20 | + |
| 21 | +- **feat(browser): Add option to sample linked traces consistently ([#16037](https://github.com/getsentry/sentry-javascript/pull/16037))** |
| 22 | + |
| 23 | +This PR implements consistent sampling across traces as outlined in ([#15754](https://github.com/getsentry/sentry-javascript/pull/15754)) |
| 24 | + |
| 25 | +- **feat(cloudflare): Add support for durable objects ([#16180](https://github.com/getsentry/sentry-javascript/pull/16180))** |
| 26 | + |
| 27 | +This PR introduces a new `instrumentDurableObjectWithSentry` method to the SDK, which instruments durable objects. We capture both traces and errors automatically. |
| 28 | + |
| 29 | +- **feat(node): Add Prisma integration by default ([#16073](https://github.com/getsentry/sentry-javascript/pull/16073))** |
| 30 | + |
| 31 | +[Prisma integration](https://docs.sentry.io/platforms/javascript/guides/nextjs/configuration/integrations/prisma/) is enabled by default, it should work for both ESM and CJS. |
| 32 | + |
| 33 | +- **feat(react-router): Add client-side router instrumentation ([#16185](https://github.com/getsentry/sentry-javascript/pull/16185))** |
| 34 | + |
| 35 | +Adds client-side instrumentation for react router's `HydratedRouter`. To enable it, simply replace `browserTracingIntegration()` with `reactRouterTracingIntegration()` in your client-side init call. |
| 36 | + |
| 37 | +- **fix(node): Avoid double-wrapping http module ([#16177](https://github.com/getsentry/sentry-javascript/pull/16177))** |
| 38 | + |
| 39 | +When running your application in ESM mode, there have been scenarios that resulted in the `http`/`https` emitting duplicate spans for incoming requests. This was apparently caused by us double-wrapping the modules for incoming request isolation. |
| 40 | + |
| 41 | +In order to solve this problem, the modules are no longer monkey patched by us for request isolation. Instead, we register diagnostics*channel hooks to handle request isolation now. |
| 42 | +While this is generally not expected to break anything, there is one tiny change that \_may* affect you if you have been relying on very specific functionality: |
| 43 | + |
| 44 | +The `ignoreOutgoingRequests` option of `httpIntegration` receives the `RequestOptions` as second argument. This type is not changed, however due to how the wrapping now works, we no longer pass through the full RequestOptions, but re-construct this partially based on the generated request. For the vast majority of cases, this should be fine, but for the sake of completeness, these are the only fields that may be available there going forward - other fields that _may_ have existed before may no longer be set: |
| 45 | + |
| 46 | +```ts |
| 47 | +ignoreOutgoingRequests(url: string, { |
| 48 | + method: string; |
| 49 | + protocol: string; |
| 50 | + host: string; |
| 51 | + hostname: string; // same as host |
| 52 | + path: string; |
| 53 | + headers: OutgoingHttpHeaders; |
| 54 | +}) |
| 55 | +``` |
| 56 | + |
| 57 | +### Other changes |
| 58 | + |
| 59 | +- feat(cloudflare): Add logs exports ([#16165](https://github.com/getsentry/sentry-javascript/pull/16165)) |
| 60 | +- feat(vercel-edge): Add logs export ([#16166](https://github.com/getsentry/sentry-javascript/pull/16166)) |
| 61 | +- feat(cloudflare): Read `SENTRY_RELEASE` from `env` ([#16201](https://github.com/getsentry/sentry-javascript/pull/16201)) |
| 62 | +- feat(node): Drop `http.server` spans with 404 status by default ([#16205](https://github.com/getsentry/sentry-javascript/pull/16205)) |
| 63 | +- fix(browser): Respect manually set sentry tracing headers in XHR requests ([#16184](https://github.com/getsentry/sentry-javascript/pull/16184)) |
| 64 | +- fix(core): Respect manually set sentry tracing headers in fetch calls ([#16183](https://github.com/getsentry/sentry-javascript/pull/16183)) |
| 65 | +- fix(feedback): Prevent `removeFromDom()` from throwing ([#16030](https://github.com/getsentry/sentry-javascript/pull/16030)) |
| 66 | +- fix(node): Use class constructor in docstring for winston transport ([#16167](https://github.com/getsentry/sentry-javascript/pull/16167)) |
| 67 | +- fix(node): Fix vercel flushing logic & add test for it ([#16208](https://github.com/getsentry/sentry-javascript/pull/16208)) |
| 68 | +- fix(node): Fix 404 route handling in express 5 ([#16211](https://github.com/getsentry/sentry-javascript/pull/16211)) |
| 69 | +- fix(logs): Ensure logs can be flushed correctly ([#16216](https://github.com/getsentry/sentry-javascript/pull/16216)) |
| 70 | +- ref(core): Switch to standardized log envelope ([#16133](https://github.com/getsentry/sentry-javascript/pull/16133)) |
| 71 | + |
13 | 72 | ## 9.15.0
|
14 | 73 |
|
15 | 74 | ### Important Changes
|
|
0 commit comments