Topic hub
Logging & Observability
Structured logs, metrics, traces, SLOs and alerting that let you understand production.
Lessons
- Logging, Metrics and Tracing · FastAPI: From Basics to Production
Structured logs, Prometheus metrics and OpenTelemetry traces for FastAPI. - Distributed Tracing with OpenTelemetry · Observability and Operations
Instrument services, propagate context and sample traces sensibly. - Logs, Metrics and Traces · Observability and Operations
What each telemetry signal is good for and how they connect. - Designing Metrics: RED, USE and the Golden Signals · Observability and Operations
Pick metrics that reveal user impact and saturation without exploding cardinality. - SLOs, Error Budgets and Alerting · Observability and Operations
Define reliability targets and alert on what users feel. - Structured Logging That Scales · Observability and Operations
Design log events that are queryable, safe and affordable. - Structured Logging · Spring Boot: From Basics to Production
Emit JSON logs with context for log aggregation. - Security Logging, Detection & Incident Response · API Security in Depth
Audit trails, detections and what to do when a key leaks. - Observing Distributed Systems · Distributed Systems for Backend Engineers
Tracing, correlation and debugging across services and queues. - Observability for LLM Features · Integrating LLM APIs
Tracing calls, tokens, cost, latency and quality signals. - Observability for Mobile APIs · Mobile API Best Practices
Measure what users experience: per-version metrics, client traces and crash correlation. - SLO-Driven Resilience · Resilience Patterns
Decide how much resilience you need from user-facing objectives.
Decision guides
Cookbook recipes
- Centralize error handling in Express 5 · Node.js
- Add request IDs and structured logs to FastAPI · FastAPI
- Add OpenTelemetry tracing to FastAPI · FastAPI
- Structured logging with request IDs in Node.js · Node.js
- Add structured logging with request IDs in PHP · PHP
- Run scheduled jobs (cron) reliably in PHP · PHP
- Add health check endpoints to a PHP app · PHP
- Handle errors gracefully with error boundaries · React
- Add correlation IDs to Spring Boot logs · Spring Boot
- Track created/updated timestamps and users with JPA auditing · Spring Boot