advancedDistributed Tracing & Centralized Logging
What's the difference between a trace and a span?
A trace is the entire end-to-end journey of one request across every service it touched; a span is one unit of work within that journey — one service's handling of it, or one significant sub-operation — with the trace ID tying every span in the same journey together.
Ready to master this question?
Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.
Sign in to generate a response