|
10 | 10 |
|
11 | 11 | - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
|
12 | 12 |
|
| 13 | +## 9.9.0 |
| 14 | + |
| 15 | +### Important Changes |
| 16 | + |
| 17 | +- **feat(nextjs): Support `instrumentation-client.ts` ([#15705](https://github.com/getsentry/sentry-javascript/pull/15705))** |
| 18 | + |
| 19 | + Next.js recently added a feature to support [client-side (browser) instrumentation via the `experimental.clientInstrumentationHook` flag and the `instrumentation-client.ts` file](https://nextjs.org/docs/app/api-reference/config/next-config-js/clientInstrumentationHook). |
| 20 | + |
| 21 | + To be forwards compatible, the Sentry Next.js SDK will now pick up `instrumentation-client.ts` files even on older Next.js versions and add them to your client bundles. |
| 22 | + It is suggested that you either rename your `sentry.client.config.ts` file to `instrumentation-client.ts`, or if you already happen to have a `instrumentation-client.ts` file move the contents of `sentry.client.config.ts` to `instrumentation-client.ts`. |
| 23 | + |
| 24 | +- **feat(browser): Add `previous_trace` span links ([#15569](https://github.com/getsentry/sentry-javascript/pull/15569))** |
| 25 | + |
| 26 | + The `@sentry/browser` SDK and SDKs based on `@sentry/browser` now emits a link from the first root span of a newly started trace to the root span of a previously started trace. You can control this feature via an option in `browserTracingIntegration()`: |
| 27 | + |
| 28 | + ```js |
| 29 | + Sentry.init({ |
| 30 | + dsn: 'your-dsn-here' |
| 31 | + integrations: [ |
| 32 | + Sentry.browserTracingIntegration({ |
| 33 | + // Available settings: |
| 34 | + // - 'in-memory' (default): Stores previous trace information in memory |
| 35 | + // - 'session-storage': Stores previous trace information in the browser's `sessionStorage` |
| 36 | + // - 'off': Disable storing and sending previous trace information |
| 37 | + linkPreviousTrace: 'in-memory', |
| 38 | + }), |
| 39 | + ], |
| 40 | + }); |
| 41 | + ``` |
| 42 | + |
| 43 | +- **feat(browser): Add `logger.X` methods to browser SDK ([#15763](https://github.com/getsentry/sentry-javascript/pull/15763))** |
| 44 | + |
| 45 | + For Sentry's [upcoming logging product](https://github.com/getsentry/sentry/discussions/86804), the SDK now supports sending logs via dedicated |
| 46 | + |
| 47 | + ```js |
| 48 | + Sentry.init({ |
| 49 | + dsn: 'your-dsn-here', |
| 50 | + _experiments: { |
| 51 | + enableLogs: true, // This is required to use the logging features |
| 52 | + }, |
| 53 | + }); |
| 54 | + |
| 55 | + Sentry.logger.info('This is a trace message', { userId: 123 }); |
| 56 | + // See PR for better documentation |
| 57 | + ``` |
| 58 | + |
| 59 | + Please note that the logs product is still in early access. See the link above for more information. |
| 60 | + |
| 61 | +### Other Changes |
| 62 | + |
| 63 | +- feat(browser): Attach host as part of error message to "Failed to fetch" errors ([#15729](https://github.com/getsentry/sentry-javascript/pull/15729)) |
| 64 | +- feat(core): Add `parseStringToURL` method ([#15768](https://github.com/getsentry/sentry-javascript/pull/15768)) |
| 65 | +- feat(core): Optimize `dropUndefinedKeys` ([#15760](https://github.com/getsentry/sentry-javascript/pull/15760)) |
| 66 | +- feat(node): Add fastify `shouldHandleError` ([#15771](https://github.com/getsentry/sentry-javascript/pull/15771)) |
| 67 | +- fix(nuxt): Delete no longer needed Nitro 'close' hook ([#15790](https://github.com/getsentry/sentry-javascript/pull/15790)) |
| 68 | +- perf(nestjs): Remove usage of `addNonEnumerableProperty` ([#15766](https://github.com/getsentry/sentry-javascript/pull/15766)) |
| 69 | +- ref: Avoid some usage of `dropUndefinedKeys()` ([#15757](https://github.com/getsentry/sentry-javascript/pull/15757)) |
| 70 | +- ref: Remove some usages of `dropUndefinedKeys()` ([#15781](https://github.com/getsentry/sentry-javascript/pull/15781)) |
| 71 | +- ref(nextjs): Fix Next.js vercel-edge runtime package information ([#15789](https://github.com/getsentry/sentry-javascript/pull/15789)) |
| 72 | + |
13 | 73 | ## 9.8.0
|
14 | 74 |
|
15 | 75 | - feat(node): Implement new continuous profiling API spec ([#15635](https://github.com/getsentry/sentry-javascript/pull/15635))
|
|
0 commit comments