SimuVedaSystem Design Lab Open in the lab

Observability / Beginner / 5 min / Updated

Metrics vs logs vs traces: which one finds the problem?

Pick an incident and the signals you pay for. Metrics alert fast, traces point at the slow span, logs find one customer, and the bill grows with logs.

Start the simulation → Change the load, break a part, watch what happens. Free, no sign-up.

In short

What is metrics, logs, traces?

Metrics are aggregated numbers, logs are per-event records, traces follow one request across services.

Why does it matter?

Each answers a different question: is something wrong, what exactly happened, and where the time went.

What is the trade-off?

Metrics are cheap but coarse; logs are detailed but costly; traces are precise but sampled. Use all three, linked by ids.

How do you explain it in an interview?

"Metrics for SLO alerts, structured logs with trace ids for detail, sampled traces for latency, all via OpenTelemetry."

Check yourself

Which signal usually fires the first alert?

Answer: Metrics: cheap numbers over time with thresholds. Metrics are aggregated and cheap to keep, so they are the natural source for alerts on error rate and latency.

One customer reports failed payments while totals look normal. What finds it fastest?

Answer: Logs searched by the customer id. Metrics have no customer label and sampled traces probably miss them; logs keep every event with its ids.

What usually makes the biggest part of an observability bill at scale?

Answer: Logs, because they grow with every request. Log volume is bytes per request times traffic; metrics stay flat. Sample, drop debug logs or keep fewer days.

See it happen in the simulation →

observabilitymetricslogstracesthree pillarsmonitoringopentelemetryprometheus

More in observability