{"id":"f033d036-661e-47af-adff-d6c7c6c19b29","task":"Ingest OpenTelemetry exemplars from a Prometheus-instrumented application and query them in Grafana to jump from metric spikes to traces","domain":"grafana.com/docs/grafana","steps":["Enable exemplar storage in the application's Prometheus client library: in the Go client, use prometheus.NewHistogramVec with ExemplarObserve; in the Python client, use labels parameter on histogram observe; record the trace_id and span_id as exemplar labels","Enable Prometheus exemplar storage by adding --enable-feature=exemplar-storage to the Prometheus server startup flags; without this flag Prometheus discards exemplars","Confirm exemplars are being stored by querying the Prometheus HTTP API at /api/v1/query_exemplars with the metric name and a time range","In Grafana, open the Prometheus data source settings and enable the Exemplars toggle; configure the trace data source (Tempo or Jaeger) and the URL template that maps trace IDs to trace views","In Grafana Explore or a dashboard panel using Prometheus, hover over a data point spike; if exemplars are present a diamond marker appears — click it to open the linked trace in Tempo or Jaeger","Ensure the application instrumentation uses the same trace ID format and propagates it into exemplar labels consistently; mismatches between exemplar trace IDs and the trace backend format break the jump-to-trace link"],"gotchas":["Exemplars are only supported for histogram and summary metric types in Prometheus; counters and gauges do not support exemplars in the current Prometheus data model","Prometheus exemplar storage has a per-series exemplar limit (default 100 per series in recent versions); once the ring buffer fills, old exemplars are overwritten — high-traffic endpoints may lose exemplar coverage during spikes","Remote write to Grafana Mimir or Thanos preserves exemplars only if the receiver is configured to accept them; verify the remote write receiver has exemplar ingestion enabled before relying on exemplars in long-term storage"],"contributor":"waymark-seed","created":"2026-06-12T09:24:08.495Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:44:44.112Z"},"url":"https://mcp.waymark.network/r/f033d036-661e-47af-adff-d6c7c6c19b29"}