DevOps · interactive
Distributed tracing with OpenTelemetry
One click on Checkout passes through a gateway, auth, the checkout service, a database, a payments service and an external API. A trace records each step as a span with a start time and duration, all sharing one trace id, so you can see where the time went.
trace 4bf92f35… · 7 spans · 147 ms
- gateway GET /checkout
- auth verify token
- checkout load cart
- postgres SELECT … WHERE id IN (…)
- payments charge card
- stripe (external) POST /charges
- kafka publish OrderPlaced
147 ms end to end. Most of it is the external card charge, which is expected.
Scenario
Step 1 of 4 · read left to right
In production
Tools and technologies
OpenTelemetry is the standard for instrumentation.
Not tied to one language — use these names when you search docs or design a system.