Tracing follows work across process boundaries using propagated context. It helps distinguish local work, waiting and dependency failures.
Before you start
You should understand HTTP, database transactions and the difference between one process and independently failing services. Draw the participants and message direction before choosing a pattern. Include timeout, duplicate delivery and recovery in the model instead of considering only successful requests.
The practical goal is to reason through this situation: An order trace includes inventory and payment spans with meaningful timings. Read the walkthrough first, then try the interview exercise before opening its answer. The important part is explaining the decision and its consequences, rather than remembering a definition alone.
Step-by-step walkthrough
Step 1: Create coherent context
Carry trace information across service and message boundaries.
Step 2: Name meaningful spans
Separate local processing, queueing and dependency waits.
Step 3: Compare slow requests
Use traces with aggregate metrics and safe correlated logs.
Worked scenario
An order trace includes inventory and payment spans with meaningful timings.
An order request spends most time waiting for inventory. Without propagated context, inventory appears as an unrelated trace and the delay is harder to attribute. Trace timing narrows the investigation; it still needs representative sampling and awareness of instrumentation gaps rather than treating one trace as complete proof.
Common mistake
A trace without context propagation appears as unrelated fragments.
Verify the behavior
Verify parent-child relationships and compare normal versus slow requests.
Interview exercise
Investigate intermittent latency.
Answer and reasoning
Compare slow and ordinary traces, correlate bounded metrics and preserve request IDs in safe diagnostic logs.
Continue learning
Compare the scenario with the Microservices interview questions and test your understanding with the Microservices MCQs. For terminology and implementation details, consult the reference material.