Order the steps
Order how one trace is built across two services.
- The gateway starts a trace and a root span
- The backend assembles the tree by parent ids
- It calls Orders with a
traceparentheader - Orders starts a child span and one for its DB query
- Each service exports its spans to the collector
Choose an answer, then open Show answer below to check it.
Show answer
Answer: A C D E B
- The gateway starts a trace and a root span It creates the trace id.
- It calls Orders with a
traceparentheader Context travels with the request. - Orders starts a child span and one for its DB query Same trace id, new span ids.
- Each service exports its spans to the collector Asynchronously.
- The backend assembles the tree by parent ids One waterfall for the request.