Skip to content

8.1. The Three Pillars: Logs, Metrics, Traces

The three pillars are not interchangeable; each answers a different question at a different cost. Metrics tell you something is wrong cheaply and in aggregate; logs tell you what happened in detail but expensively at high cardinality; traces tell you where in a request’s path across services the time or the error went. This chapter covers structured logging and correlation IDs, the metric types and the RED/USE methods for using them, distributed tracing with context propagation, and how to correlate all three from a single failure event.