How to monitor and analyze web app and api usage?

Hi! I was wondering how could I collect some key metrics (I'm deploying the next app on docker) like my web app visits and load time divided per page or trpc endpoints metrics.
2 Replies
mike_tobia
mike_tobia5mo ago
Have you seen: https://nextjs.org/docs/app/api-reference/functions/use-report-web-vitals You can use this to get some metrics and send it for collection with navigator.sendBeacon .
Functions: useReportWebVitals | Next.js
API Reference for the useReportWebVitals function.
Cobain
Cobain5mo ago
Oh haven't seen it, thanks!