next-runtime icon indicating copy to clipboard operation
next-runtime copied to clipboard

Sentry integration for error reporting/tracking

Open Yegair opened this issue 4 years ago • 1 comments

Is your feature request related to a problem? Please describe. There is an official NextJS Sentry integration, which unfortunately does not work with this plugin. I have created a bug ticket (https://github.com/getsentry/sentry-javascript/issues/3880) within their repository, but maybe a native Sentry integration within the Netlify NextJS plugin makes more sense?

To be more specific: The client side integration works without any problems, but errors in Netlify functions are not tracked.

Describe the solution you'd like It should be easy to use Sentry for error reporting and tracing of NextJS applications that run on Netlify. Maybe Sentry for AWS Lambda can just be used out of the box for server side error tracking?

Describe alternatives you've considered An obvious alternative is to use Vercel instead, but I think that misses the point here. Maybe there are better ways to get insight into errors as they happen, but I am not aware of a solution that integrates with Netlify and NextJS.

Additional context As I said above, there is a corresponding bug ticket within the sentry-javascript repository (https://github.com/getsentry/sentry-javascript/issues/3880).

Yegair avatar Aug 13 '21 12:08 Yegair

hey @Yegair, thanks for suggesting this to us and sharing the issue you opened in getsentry. this would definitely be a valuable feature whenever we can get to it. we'll circle back when we find some bandwidth 🙏

lindsaylevine avatar Aug 23 '21 04:08 lindsaylevine

Hey @Yegair.

We've now got support for Sentry as a Netlify integration so you can use that.

https://www.netlify.com/integrations/sentry/

Thanks!

MarcL avatar Apr 24 '23 14:04 MarcL