Design a Distributed Tracing System
Develop a comprehensive distributed tracing system that provides visibility into the lifecycle of requests and transactions across microservices and distributed components. The system should enable developers and operators to trace the execution path of requests, identify performance bottlenecks, and diagnose failures or latency issues in a distributed architecture.
Suggested time: 45 minutes
Loading the workspace...
About this problem
This problem is fundamentally different from most system design interviews. You are not designing a user-facing application; you are designing observability infrastructure. The "users" are engineers debugging production incidents. Every component you discuss, context propagation, span collection, sampling, trace reconstruction, exists to answer one question: "What happened to this request as it traveled through 20 services?"
What your design needs to cover
Trace requests across services
Collect and store span data
Visualize traces in a UI
Tag and annotate traces
Integrate with logs and metrics
Key challenges the editorial covers
Learn from other designs
Related problems
Design a Server Architecture for Serving Geospatial Images (medium)
Design an API Rate Limiter (medium)
Design a Large-Scale Graph Processing System (advanced)