Metrics, logs & traces
easy 6 minStart with the question each signal can resolve.
Video lesson · Chapter 1 of 4
Find the checkout that failed
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
How it works
Step through the idea, or press Play.
Baseline. An inventory lookup takes twelve milliseconds.
Understand it
Worked incident
Following a single failed checkout
| Observation | Inventory span duration (ms) | Interpretation |
|---|---|---|
| Baseline | 12 | An inventory lookup takes twelve milliseconds. |
| Incident | 380 | The selected trace spends 380 ms waiting for a pool slot. |
| After intervention | 16 | Restore the pool configuration and check both fleet errors and the inventory span distribution. |
Choose the next investigation
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.