AlgoViz

Metrics, logs & traces

easy 6 min

Start with the question each signal can resolve.

Video lesson · Chapter 1 of 4

Find the checkout that failed

0:00 / 2:48

Theory

Read or listen first. About 1 min.

What it is

Start with the question each signal can resolve. A metric tells you the share of requests affected over an interval. A trace breaks a particular request into timed spans and shows their parent relationships. A log can record a reason or decision at one boundary. Shared context lets you move between these levels without assuming one trace represents the entire fleet.

Why it exists

Checkout errors double after a configuration change. Break the metric down by a bounded route and region, then follow a representative failed trace. A child span spends most of the deadline waiting for inventory. The matching log records a pool acquisition timeout. Check the pool wait distribution across the affected population before changing its limit.

If the pool is slow in only one trace while fleet pool waits are flat, test another candidate cause before tuning pool capacity.

Following a single failed checkout

Checkout metric → Trace span (find exemplar). Trace span → Structured log (join request ID)
Checkout metric → Trace span (find exemplar). Trace span → Structured log (join request ID)

How it works

Step through the idea, or press Play.

Step 1 of 3

Baseline. An inventory lookup takes twelve milliseconds.

Understand it

Worked incident

Following a single failed checkout

ObservationInventory span duration (ms)Interpretation
Baseline12An inventory lookup takes twelve milliseconds.
Incident380The selected trace spends 380 ms waiting for a pool slot.
After intervention16Restore the pool configuration and check both fleet errors and the inventory span distribution.
Illustrative measurements from the same workload at three checkpoints.

Choose the next investigation

If the pool is slow in only one trace while fleet pool waits are flat, test another candidate cause before tuning pool capacity.

Summary

The whole topic in one minute.

A trace locates a possible mechanism. Repeated observations with the same cohort and timing establish its scope.

If the pool is slow in only one trace while fleet pool waits are flat, test another candidate cause before tuning pool capacity.

Sources