Medium · From your know-how to a finished task
Reading back what happened
A trace records each step: the tool asked for, what was put in, what came back, and how long it took. Without it, every problem looks like “the order went wrong.” Grace ordered five crates of peppers, and one came. The trace tells a wrong tool, a wrong number, a check that stopped it and a supplier failure apart.
Example
Maple Mart, Friday: 5 crates of peppers asked for, 1 arrived What the trace could show wrong tool it called count_crates and bought nothing wrong number it put 1 where Grace said 5 check stopped the order never left the shop grower failed the grower sent less than it confirmed The line Grace finds 06:05 order_produce peppers, crates: 1 grower answered: 1 crate on its way
Try it Yourself
Read Grace’s trace line. Why did only one crate of peppers come? Type a few words.
Exercise
The trace shows the grower confirmed 5 and sent 1. Which problem is it?