BM: Baca dalam Bahasa Melayu
World O4: The Diary & One Order
Follow one order across services
You will learn: how one trace ID travels between services, so you can follow one order end to end.
Checked with Prometheus 3 on 1 Nov 2026
The problem
Order A1041 failed. Its kedai-api spans are in one trace. Its kedai-pay spans sit in another trace, with a new trace ID. What went wrong?
Pick one answer.
Watch
kedai-api calls kedai-pay. Tap the line that carries the order number.
0 of 1 found
Passing the trace ID along, in a header, is context propagation: Passing the trace ID to the next service, in a traceparent header, so the order keeps its number..
Try it
Build the traceparent header. Tap the pieces in order.
Tap the pieces in the right order.
Hint
Version, trace ID, parent span, flags. Dashes between them.Predict
kedai-pay reads that header and starts its span POST /pay. What is its Parent ID?
Pick one answer.
Check
The same number sits in both diaries. One search finds the order everywhere.
Check
First thing that happened at the top. Put these in order. Use the arrows, or drag.
- kedai-pay: slow query on payments, 2.8 s
- kedai-api: payment timeout after 3 s
- kedai-api: order received
Put order A1041’s story in time order. Use the times in the lines.
You did it!
You can now follow one order across services by its trace ID.
Go deeper (optional)
You rarely write traceparent by hand. OpenTelemetry’s instrumentation for HTTP clients and servers adds and reads it for you. Still check every hop. One service that drops the header splits the trace in two.
Bahasa Melayu
Pesanan A1041 gagal. Span kedai-api ada dalam satu trace. Span kedai-pay duduk dalam trace lain, dengan trace ID baharu. Apa yang tak kena?
Hantar trace ID ke depan, dalam header, ialah context propagation.
Bina header traceparent. Ketik kepingan mengikut urutan.
kedai-pay baca header itu dan mulakan span POST /pay. Apa Parent ID-nya?
Nombor yang sama ada dalam kedua-dua diari. Satu carian jumpa pesanan itu di mana-mana.
Susun cerita pesanan A1041 ikut masa. Guna masa dalam baris-baris itu.
Kini anda boleh jejak satu pesanan merentas servis dengan trace ID-nya.
You finished this before. Practice is always welcome!
Official docs: OpenTelemetry: context propagation · W3C Trace Context
You've learned for 25 minutes. A short break helps your brain.
Sprint done! Great focus. Stretch for a minute?