Blog

Logging

Structured logging for Node.js APIs: Pino setup, log levels, request IDs, trace context, outbound calls, redaction and how long to keep it all.

W3C trace context: one ID, every hop. Cover graphic for a guide to propagating traceparent across Node.js services to correlate requests.
Logging

W3C Trace Context in Node.js: correlating requests across services with traceparent

Three services, three log streams, one failed order, and nothing to join them on. W3C Trace Context gives every hop the same trace ID. Here is how to propagate traceparent in Node with OpenTelemetry, or in 30 lines without it.

Jason Fill October 27, 2026 6 min read
API log retention without the surprise bill. Cover graphic for a guide to request log retention, sampling and cost for small API teams.
Logging

API log retention and cost: how much request logging a small team needs

Either the logging bill surprises you or the logs are gone when a customer asks about last month. Here is a retention policy a small team can set up in an afternoon.

Jason Fill July 8, 2026 6 min read
Node.js log levels that mean something. Cover graphic for a guide to a log level policy for small Node.js teams.
Logging

Node.js log levels that mean something: a logging policy for small teams

At 3am your error log is full of scanner 404s and the real database timeout is buried. Here is a Node.js log levels policy a small team can paste into its repo, plus the code that enforces it.

Jason Fill April 29, 2026 6 min read
Log outbound HTTP requests per host. Cover graphic for a guide to logging fetch and axios calls in Node.js with diagnostics_channel.
Logging

How to log outbound HTTP requests in Node.js

Your API threw 502s because a provider was timing out, and your logs said nothing. Log outbound HTTP requests from fetch and axios with diagnostics_channel in an afternoon, then read error rate and p95 per host.

Jason Fill February 18, 2026 6 min read
Redact sensitive data in logs. Cover graphic for a guide to keeping secrets and personal data out of Node.js API logs.
Logging

How to redact sensitive data in logs for Node.js APIs

Found a bearer token in your logs? Here's how to keep secrets and personal data out of Node API logs in an afternoon: Pino redaction, URL and error scrubbing, body allowlists and a test that catches leaks.

Jason Fill January 5, 2026 6 min read
Pino logging you can actually query. Cover graphic for a guide to structured Pino logging in Express and Fastify.
Logging

Pino logging in Node.js: a practical structured logging setup for Express and Fastify

A customer says invoices failed yesterday and your logs are a wall of console.log. Set up Pino logging for Express or Fastify in an afternoon: JSON lines, request IDs, levels by status, redaction and a team checklist.

Jason Fill November 4, 2025 6 min read