Lesson 7 of 10 - Observability

Metrics, logs and traces

By Branko Petric - Updated - About 8 min - Full access

The short answer

Metrics are cheap numbers over time that tell you something is wrong. Logs are events that tell you what happened to one request. Traces show where a single request spent its time across services. Keep metric labels low-cardinality, log in JSON, and put the trace ID in every log line.

Want the bigger picture? This lesson maps to this step of the DevOps roadmap.