How do you get accurate RED metrics if traces are sampled?

IntermediateProductionTracing & Sampling
Answer

Generate metrics before sampling. The OTel Collector spanmetrics connector (or Tempo's metrics-generator, Datadog's trace metrics) computes request counts, errors and latency histograms from 100% of spans, then traces are sampled. Alternatively rely on app-level Prometheus metrics for RED and use traces only for debugging. Never compute rates from a sampled trace store.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing & Sampling