Auto-instrument Next.js Server Actions

Auto-instrument Next.js Server Actions

Aug 20, 2024

Here's a really cool way to automatically instrument all your Next.js Server Actions with Sentry! next-safe-action allows you to create middleware for your server actions, in which you can setup instrumentation for all the actions that use the middleware. Easy!

Link to the tweet: https://x.com/pontusab/status/1820429703578313137
next-safe-action: https://next-safe-action.dev/

Try Sentry for free: https://sentry.io
Docs: https://docs.sentry.io
Follow: https://twitter.com/getsentry