You want RED metrics for every service without asking teams to add Prometheus code. How?
IntermediateScenarioTracing and OpenTelemetry
Answer
Situation read → Traces already contain rate, errors and duration for each operation.
What I'd do →
- In the Collector, add the
spanmetricsconnector (traces in, metrics out), with histogram buckets and dimensions likeservice.name,span.name,http.response.status_code. - Export metrics to Prometheus via
prometheusremotewriteor Prometheus exporter. - Or enable Tempo's metrics-generator (
span-metricsandservice-graphsprocessors). - Run spanmetrics before tail sampling so counts are accurate.
Why → One instrumentation source produces both traces and metrics consistently.
Interview tip → Watch cardinality: never include IDs or raw URLs as dimensions.
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