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.
More on Tracing & Sampling
In production, when do you pick tail-based over head-based trace sampling, and what does it cost you?BeginnerHow do you configure head sampling correctly in OpenTelemetry?BeginnerHow do you set up tail sampling in the OpenTelemetry Collector?IntermediateWhy does tail sampling need a load-balancing tier, and how do you build it?AdvancedHow do you combine head and tail sampling in a high-traffic system?AdvancedHow do you get accurate RED metrics if traces are sampled?Intermediate