Next.js Discord

Discord Forum

Datadog error tracking?

Unanswered
Rhinelander posted this in #help-forum
Open in Discord
RhinelanderOP
Any idea how you can use Datadog's error tracking feature with the app router? https://docs.datadoghq.com/integrations/rum_react/#error-tracking

They want you to either use their ErrorBoundary component or integrate into the componentDidCatch function of your own error boundary component. However, Next only seems to offer a way to customize the fallback error, not the boundary itself: https://nextjs.org/docs/app/getting-started/error-handling#handling-uncaught-exceptions

1 Reply