Notes from the traffic layer
How teams debug production APIs, what full-fidelity capture makes possible, and what we are shipping.
Strapi monitoring and logging: API request logs, performance and security for Strapi 5
Strapi 5 hides debug logs by default and only rate limits its auth routes. This guide adds a request-log middleware, finds slow populate queries and covers abuse on public content APIs.
AdonisJS monitoring and logging: the built-in logger, request logs and APM
AdonisJS ships a Pino logger and health checks but logs no requests and sends raw error messages on a 500. How to add request logs by route, metrics, OpenTelemetry tracing and a safer exception handler, tested on AdonisJS 7.
hapi monitoring and logging: hapi-pino, request lifecycle events and APM
hapi 21 gives you a hook for every layer of monitoring. Set up hapi-pino with redaction, per-route Prometheus metrics, Boom error logging and OpenTelemetry traces, with code we ran and the output it printed.
Koa monitoring and logging: request logs, metrics and APM for Koa 2 and 3
A Koa timing middleware that only uses try/finally logs every crash as a 404. How to set up Koa logging with pino, per-route metrics with prom-client, error reporting and OpenTelemetry traces, tested on Koa 2 and 3.
Fastify logging: getting the most from the built-in pino logger
Fastify logs every request out of the box, but the default skips routes, user agents and bodies, and Fastify 4 trusts client request ids. A tested production config for Fastify 4 and 5.
Fastify monitoring: hooks, metrics and APM for Fastify 4 and 5
Set up Fastify monitoring that shows which route got slow and why: onResponse timings, fastify-metrics histograms, @fastify/otel spans per hook, and under-pressure load shedding, with output from real runs.
NestJS logging: the built-in Logger, nestjs-pino and request logs that include rejected requests
Nest's built-in Logger prints no request logs, and logging interceptors never see a guard's 403 or an unmatched 404. This guide sets up nestjs-pino with request IDs, redaction and route patterns, tested on NestJS 11 and 12.
NestJS monitoring: metrics, APM and tracing that see guards and interceptors
NestJS monitoring that counts every request: per-route Prometheus metrics from middleware, OpenTelemetry tracing on NestJS 11 and 12, and what interceptors miss.
Express logging in production: pino-http vs morgan, request bodies and redaction
morgan, pino-http or winston? A production Express logging setup on Express 5: one JSON line per request with request ID, route and user, bodies for failed requests only, pino redaction, and errors on the same line.
Node.js API logging: what to log for every request, and how
Most Node.js API logs can't answer "what happened to this customer's request?" This guide covers the six fields every request line needs, safe body capture that keeps streaming intact, redaction, outbound calls, and the queries to run, with code tested on Node 22 and 24.
Express monitoring: route-level metrics, APM and alerts for Express 4 and 5
Most Express metrics are labelled by raw URL and miss async errors. Build route-level metrics with prom-client, add OpenTelemetry in the right load order, and set alerts, with code we ran on Express 4.22.3 and 5.3.0.
Node.js API monitoring: what to measure, how to set it up, and which tools fit a small team
Uptime checks miss most of what breaks a Node API. What to measure per route and per process, a tested Express middleware for RED metrics and event loop delay, where OpenTelemetry fits, a fair tool comparison and the alerts worth paging on.