Design ingestion, storage, and query for traces spanning hundreds of microservices. Support tail sampling, high cardinality guardrails, and correlation with logs and metrics.
Functional requirements
- Accept OTLP or Zipkin traces from agents and service mesh
- Persist spans with trace and span IDs, parent links, and attributes
- Query UI for trace waterfall and service graph
- Tail-based sampling decisions after seeing errors or latency
- Retention tiers and export to long-term object storage
Non-functional requirements
- Horizontally scalable collectors and storage shards
- Cardinality controls to prevent index explosion
- Low agent overhead on applications
- Multi-tenant isolation with per-team budgets