What are exemplars used for in production and what must be in place?

IntermediateProductionTracing & Sampling
Answer

Exemplars attach a trace_id to specific histogram observations, so a latency spike on a dashboard links straight to an example trace. Requirements: client libraries that record exemplars (OTel SDK, Prometheus clients with exemplar support), OpenMetrics scraping, Prometheus started with --enable-feature=exemplar-storage, the backend storing them (Mimir supports it), and the Grafana data source configured with a trace link. Note that with sampling, the linked trace might not have been kept, so tail-sample slow requests.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing & Sampling