How to add Sentry-like Datadog-like full stack tracing to Next.js Cloudflare Pages

For Workes & Pages, what is the name of the domain?

none

What is the error number?

none

What is the error message?

none

What is the issue or error you’re encountering

Not able to see frontend errors, or backend errors

What steps have you taken to resolve the issue?

I’m using Cloudflare D1. I have a pages app. I want to see APM like observability for database, and have some logic in API routes and getServerSideProps. I also have frontend in React. I want to see errors and requests. Is there a way to do this? I’m trying to migrate off of a droplet from Digitalocean.

What are the steps to reproduce the issue?

No steps.