From 4ff96ec5fd7171591b7524f9e3c6845f12f3f018 Mon Sep 17 00:00:00 2001 From: Luca Forstner Date: Mon, 20 Nov 2023 09:47:01 +0000 Subject: [PATCH] meta(changelog): Update changelog for 7.81.0 --- CHANGELOG.md | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6315e5ba18af..2cf73331536f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,59 @@ - "You miss 100 percent of the chances you don't take. — Wayne Gretzky" — Michael Scott +## 7.81.0 + +### Important Changes + +**- feat(nextjs): Add instrumentation utility for server actions (#9553)** + +This release adds a utility function `withServerActionInstrumentation` to the `@sentry/nextjs` SDK for instrumenting your Next.js server actions with error and performance monitoring. + +You can optionally pass form data and headers to record them, and configure the wrapper to record the Server Action responses: + +```tsx +import * as Sentry from "@sentry/nextjs"; +import { headers } from "next/headers"; + +export default function ServerComponent() { + async function myServerAction(formData: FormData) { + "use server"; + return await Sentry.withServerActionInstrumentation( + "myServerAction", // The name you want to associate this Server Action with in Sentry + { + formData, // Optionally pass in the form data + headers: headers(), // Optionally pass in headers + recordResponse: true, // Optionally record the server action response + }, + async () => { + // ... Your Server Action code + + return { name: "John Doe" }; + } + ); + } + + return ( +
+ + +
+ ); +} +``` + +### Other Changes + +- docs(feedback): Example docs on `sendFeedback` (#9560) +- feat(feedback): Add `level` and remove breadcrumbs from feedback event (#9533) +- feat(vercel-edge): Add fetch instrumentation (#9504) +- feat(vue): Support Vue 3 lifecycle hooks in mixin options (#9578) +- fix(nextjs): Download CLI binary if it can't be found (#9584) +- ref: Deprecate `extractTraceParentData` from `@sentry/core` & downstream packages (#9158) +- ref(replay): Add further logging to network body parsing (#9566) + +Work in this release contributed by @snoozbuster. Thank you for your contribution! + ## 7.80.1 - fix(astro): Adjust Vite plugin config to upload server source maps (#9541)