Sentry & Next.js runtime - How do I get Edge (+ SSR & ISR) function errors to Sentry?


I’ve started using your Beta integration for Sentry and much of it is working great.

A reason why we wanted to start using Sentry was to get errors from Netlify’s function execution into Sentry.

I’ve seen examples where users use Sentry with their functions, but what do I need to do to make it work for Next.js’s functions, including the edge function?

Thank you so much in advance!

I don’t think it’s possible to make it work with Next.js’ functions. They’re generated by our plugins and so far, there are no plans to add any additional functionality to it, other than just make Next.js work.

I see! Would I perhaps manage to connect to sentry manually then, using code in the function itself?

You can certainly try anything you’d like! We don’t have any specific advice for that use case, and won’t be able to provide tech support on it, but if you get something working, awesome!

Perhaps you’d like to file a feature request on the repo to enable your use case? This is probably the right place to request something like “create option for builds to export source maps”: