|
4 | 4 |
|
5 | 5 | - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott
|
6 | 6 |
|
| 7 | +## 7.46.0 |
| 8 | + |
| 9 | +### Important Changes |
| 10 | + |
| 11 | +- **feat(sveltekit)**: Add Performance Monitoring for SvelteKit |
| 12 | + - feat(sveltekit): Add meta tag for backend -> frontend (#7574) |
| 13 | + - fix(sveltekit): Explicitly export Node SDK exports (#7644) |
| 14 | + - fix(sveltekit): Handle nested server calls in `sentryHandle` (#7598) |
| 15 | + - ref(sveltekit): Split up universal and server load wrappers (#7652) |
| 16 | + |
| 17 | +This release adds support for Performance Monitoring in our SvelteKit SDK for the client/server. We've also changed how you should initialize your SDK. Please read our updated [SvelteKit README instructions](./packages/sveltekit/README.md) for more details. |
| 18 | + |
| 19 | +- **feat(core)**: Add `ignoreTransactions` option (#7594) |
| 20 | + |
| 21 | +You can now easily filter out certain transactions from being sent to Sentry based on their name. |
| 22 | + |
| 23 | +```ts |
| 24 | +Sentry.init({ |
| 25 | + ignoreTransactions: ['/api/healthcheck', '/ping'], |
| 26 | +}) |
| 27 | +``` |
| 28 | + |
| 29 | +- **feat(node)**: Undici integration (#7582) |
| 30 | + - feat(nextjs): Add Undici integration automatically (#7648) |
| 31 | + - feat(sveltekit): Add Undici integration by default (#7650) |
| 32 | + |
| 33 | +We've added an integration that automatically instruments [Undici](https://github.com/nodejs/undici) and Node server side fetch. This supports Undici `v4.7.0` or higher and requires Node `v16.7.0` or higher. After adding the integration outgoing requests made by Undici will have associated spans and breadcrumbs in Sentry. |
| 34 | + |
| 35 | +```ts |
| 36 | +Sentry.init({ |
| 37 | + integrations: [new Sentry.Integrations.Undici()], |
| 38 | +}) |
| 39 | +``` |
| 40 | + |
| 41 | +In our Next.js and SvelteKit SDKs, this integration is automatically added. |
| 42 | + |
| 43 | +- **feat(node)**: Add Sentry tRPC middleware (#7511) |
| 44 | + |
| 45 | +We've added a new middleware for [trpc](https://trpc.io/) that automatically adds TRPC information to Sentry transactions. This middleware is meant to be used in combination with a Sentry server integration (Next.js, Express, etc). |
| 46 | + |
| 47 | +```ts |
| 48 | +import { initTRPC } from '@trpc/server'; |
| 49 | +import * as Sentry from '@sentry/node'; |
| 50 | + |
| 51 | +const t = initTRPC.context().create(); |
| 52 | +const sentryMiddleware = t.middleware( |
| 53 | + Sentry.Handlers.trpcMiddleware({ |
| 54 | + attachRpcInput: true, |
| 55 | + }), |
| 56 | +); |
| 57 | + |
| 58 | +const sentrifiedProcedure = t.procedure.use(sentryMiddleware); |
| 59 | +``` |
| 60 | + |
| 61 | +- **feat(tracing)**: Remove requirement for `@sentry/tracing` package |
| 62 | + |
| 63 | +With `7.46.0` you no longer require the `@sentry/tracing` package to use tracing and performance monitoring with the Sentry JavaScript SDKs. The `@sentry/tracing` package will be removed in a future major release, but can still be used with no changes. |
| 64 | + |
| 65 | +Please see the [Migration docs](./MIGRATION.md/#remove-requirement-for-sentrytracing-package-since-7460) for more details. |
| 66 | + |
| 67 | +- **fix(node)**: Convert debugging code to callbacks to fix memory leak in `LocalVariables` integration (#7637) |
| 68 | + |
| 69 | +This fixes a memory leak in the opt-in [`LocalVariables` integration](https://blog.sentry.io/2023/02/01/local-variables-for-nodejs-in-sentry/), which adds local variables to the stacktraces sent to Sentry. The minimum recommended version to use the `LocalVariables` is now `7.46.0`. |
| 70 | + |
| 71 | +### Additional Features and Fixes |
| 72 | + |
| 73 | +- feat(node): Auto discovery only returns integrations where dependency loads (#7603) |
| 74 | +- feat(node): Sanitize URLs in Span descriptions and breadcrumbs (PII) (#7667) |
| 75 | +- feat(replay): Add `responseStatus`, `decodedBodySize` to perf entries (#7613) |
| 76 | +- feat(replay): Add experiment to capture request/response bodies (#7589) |
| 77 | +- feat(replay): Capture replay mutation breadcrumbs & add experiment (#7568) |
| 78 | +- feat(tracing): Ensure `pageload` transaction starts at timeOrigin (#7632) |
| 79 | +- fix(core): Remove `abs_path` from stack trace (reverting #7167) (#7623) |
| 80 | +- fix(nextjs): Add loading component type to server component wrapping (#7639) |
| 81 | +- fix(nextjs): Don't report `NEXT_NOT_FOUND` and `NEXT_REDIRECT` errors (#7642) |
| 82 | +- fix(nextjs): Rewrite `abs_path` frames (#7619) |
| 83 | +- fix(nextjs): Show errors and warnings only once during build (#7651) |
| 84 | +- fix(nextjs): Use Next.js internal AsyncStorage (#7630) |
| 85 | +- fix(nextjs): Gracefully handle undefined `beforeFiles` in rewrites (#7649) |
| 86 | + |
| 87 | +Work in this release contributed by @aldenquimby and @bertho-zero. Thank you for your contributions! |
| 88 | + |
7 | 89 | ## 7.45.0
|
8 | 90 |
|
9 | 91 | - build(cdn): Ensure ES5 bundles do not use non-ES5 code (#7550)
|
|
0 commit comments