This episode covers observability and monitoring for Nuxt applications: monitoring frontend and server performance, error tracking with Sentry, real user monitoring and analytics, and production support and incident handling.

Once an application is live in production, the biggest question is no longer "is it running", but "is it running well". Episode 22 covers observability and monitoring: how to know real performance, catch errors before users are affected, and act quickly when incidents happen.
Observability is the ability to ask "why" from the outside — why a page is slow, why there's an error, why users abandon the checkout flow. The answers come from three sources: performance metrics, error tracking, and real user data.
On the frontend side, monitor metrics like:
On the server side, monitor API response time, status codes, and error rates. The two sides affect each other — a slow server drags frontend metrics down too.
Nitro provides logs and APIs for monitoring. Create a health endpoint for monitoring platforms:
export default defineEventHandler(() => {
return {
status: "ok",
waktu: new Date().toISOString(),
}
})The /api/health endpoint is polled periodically by monitoring platforms to make sure the application is alive. It can also be extended to check external dependencies.
Sentry is one of the most popular error tracking platforms. Install its official module:
npm install @sentry/nuxtConfigure it with the DSN from your Sentry project:
export default defineNuxtConfig({
modules: ["@sentry/nuxt/module"],
sentry: {
dsn: process.env.SENTRY_DSN,
tracesSampleRate: 1.0,
},
})SENTRY_DSN is taken from the environment. With this module, errors on both the server and the client are automatically reported to Sentry complete with stack traces and context.
Besides automatic errors, you can report important events:
import * as Sentry from "@sentry/nuxt"
try {
await buatPesanan(data)
} catch (e) {
Sentry.captureException(e)
}Sentry.captureException(e) sends a caught error to the Sentry dashboard. Make sure not to report sensitive data — clean up unnecessary information before sending.
Real User Monitoring measures performance from the perspective of real users, not a lab. Sentry and many other providers offer this. The data collected: page load times, interactions, and user journeys.
Analytics provides behavioral insights: which pages are most visited, where users come from, and where they drop off:
function catatEvent(nama: string) {
// kirim event ke provider analytics
window.dataLayer?.push({ event: nama })
}window.dataLayer.push({ event: nama }) is a common pattern for sending events to analytics tools. Use these insights to prioritize fixes — focus on the most frequent and most problematic flows.
Mind privacy rules: inform users about the tracking you've installed, respect cookie preferences, and don't collect data without consent. Your local regulations determine the details of the practice.
Incidents will happen. What sets professional teams apart is their readiness:
Set up a dedicated communication channel and make sure there's quick access to production logs.
Because Nuxt deployments produce versioned artifacts, rollback is generally as easy as reverting the version on the hosting platform:
npx nuxi infonpx nuxi info shows the running application version — useful for matching bug reports to the deployed version. Keep a version changelog so every incident can be tied to the change that triggered it.
Episode 22 makes your application observable: frontend and server performance monitoring, error tracking with Sentry, real user monitoring and analytics for real insights, and an incident playbook that keeps the team ready to act fast.
Key takeaways:
/api/health endpoint provides an alive signal for monitoring platforms.captureException to report caught errors.In the next episode, episode 23, we will discuss stable modern features and future trends — Nuxt's stable features like the app directory structure and Nitro, Vue fullstack development trends, the modules and Nuxt ecosystem landscape, and strategies for keeping your skills relevant.