BM: Baca dalam Bahasa Melayu
World O4: The Diary & One Order
Traces and spans
You will learn: to read one order as a trace made of spans, and see which step was slow.
Checked with Prometheus 3 on 1 Nov 2026
The problem
Order A1043 took almost 2 seconds. It passed through kedai-api and kedai-pay. Which step ate the time?
Pick one answer.
Watch
Tap each point on the timeline.
A trace is the whole order. Each step is a span: One step of an order, with a start and an end time. Spans nest: a parent span holds child spans., with a start and an end. Tap through it.
Watch
This is the real Collector's debug output for that order. Tap the line that links the child to its parent.
0 of 1 found
Both spans share one trace ID: The order number every span and log line of one request shares: 32 hex characters.: the order number.
Predict
pay card took 1.8 of the 1.95 seconds. Where do you look next?
Pick one answer.
Check
Drag a card into a box. Or tap the card, then tap the box.
The real output said Kind: Server and Kind: Client. Sort these spans.
You did it!
You can now read a trace and find the slow span.
Go deeper (optional)
Spans also carry attributes (http.route: /order), events, and a status. A failed step sets the status to Error. Real rep: the official OpenTelemetry Demo runs a whole online shop on your laptop. See opentelemetry.io/docs/demo.
Bahasa Melayu
Pesanan A1043 ambil hampir 2 saat. Ia lalu kedai-api dan kedai-pay. Langkah mana yang makan masa?
Trace ialah seluruh pesanan. Setiap langkah ialah span, dengan mula dan tamat. Ketik satu demi satu.
Kedua-dua span kongsi satu trace ID: nombor pesanan.
pay card ambil 1.8 daripada 1.95 saat. Ke mana anda tengok seterusnya?
Output sebenar tadi kata Kind: Server dan Kind: Client. Susun span-span ini.
Kini anda boleh baca trace dan cari span yang lambat.
You finished this before. Practice is always welcome!
Official docs: OpenTelemetry: traces · OpenTelemetry Collector · OpenTelemetry Demo
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?