Sentry Integration Test Page

This page allows to test Sentry integration. There are several test pages below that result in various kinds of unhandled exceptions that needs to be reported.

SSR exceptions

Note that there are currently two known bugs with respect to SSR transactions: they dont get recorded on Vercel, and ones that are recorded and have an error are grouped in the Sentry UI by the error page name rather than the requested page name.

1. getServerSideProps throws an Error. This should cause _error.js to render and record Error(SSR Test 1) in Sentry.
Open in a new tab or Perform client side navigation

2. getServerSideProps returns a Promise that rejects. This should cause _error.js to render and record Error(SSR Test 2) in Sentry.
Open in a new tab

3. getServerSideProps calls a Promise that rejects, but does not handle the rejection or await its result (returning synchronously). Sentry should record Error(SSR Test 3), but will not when deployed to Vercel because the serverless function will already have exited.
Open in a new tab

4. getServerSideProps manually captures an exception from a try/catch. This should record Error(SSR Test 4) in Sentry.
Open in a new tab

Client exceptions

1. There is a top-of-module exception. _error.js should render and record ReferenceError(process is not defined) in Sentry.
Perform client side navigation or Open in a new tab

2. There is an exception during React lifecycle that is caught by Next.js React Error Boundary. In this case, when the component mounts. This should cause _error.js to render and record Error(Client Test 2) in Sentry.
Perform client side navigation or Open in a new tab

3. There is an unhandled Promise rejection during React lifecycle. In this case, when the component mounts. Sentry should record Error(Client Test 3).
Perform client side navigation or Open in a new tab

4. An Error is thrown from an event handler. Sentry should record Error(Client Test 4). (This page also demonstrates how to manually instrument your code for performance monitoring.)
Perform client side navigation or Open in a new tab