Tempo storage costs are growing fast. How do you control them?
IntermediateScenarioTracing and OpenTelemetry
Answer
Situation read → Volume, retention and span size all drive cost.
What I'd do →
- Measure ingested bytes per service (
tempo_distributor_bytes_received_totalby tenant, spans per service). - Apply or tighten tail sampling and drop noisy spans (health checks,
/metrics) with afilterprocessor. - Remove large attributes (SQL with full payloads, request bodies) via
attributes/transformprocessors. - Set block retention in the compactor (
compaction.block_retention: 336h). - Keep 100% data only in span metrics, not raw traces.
Why → Most trace data is never read; sample and trim it.
Interview tip → Health check spans are often 30%+ of volume; dropping them is a quick win.
More on Tracing and OpenTelemetry
Your company has 30 microservices and no tracing. How do you roll out distributed tracing?IntermediateTraces stop at service B: you see spans from A, but B's spans start new traces. What is wrong?BeginnerTracing every request costs too much. How do you design sampling?IntermediateYou set up tail sampling with 4 Collector replicas, but traces are fragmented and error traces are missing. Why?AdvancedA checkout request takes 4 seconds. Walk through how you use a trace to find the cause.BeginnerYour OpenTelemetry Collector is getting OOMKilled under load. How do you stabilise it?Intermediate