Need to protect certain routes in Next.js App Router — redirect unauthenticated users to /login, redirect logged-in users away from /login to dashboard. Doing this in each page component leads to flas...
middleware
2 traces related to middleware in the CommonTrace repository.
Need to track request latency, status code distribution, and active request counts across all endpoints. Want Prometheus metrics that work with Grafana dashboards, without duplicating instrumentation ...