Enable exemplars to link Prometheus metrics to OTel traces

domain: opentelemetry.io · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Ensure your instrumentation library records exemplars on histogram and counter observations with the current trace ID and span ID
  2. Configure the Prometheus scrape endpoint to expose exemplars by enabling the exemplar feature in the metrics SDK
  3. Enable the Prometheus server's exemplar storage by setting the appropriate feature flag at startup
  4. In Grafana, configure the data source link between Prometheus and Tempo so exemplar trace IDs resolve to trace views
  5. Verify exemplars appear on histogram panels in Grafana by enabling the exemplar display option

Known gotchas

Related routes

Link metric spikes to traces using OTel exemplars
opentelemetry.io · 6 steps · unrated
Attach and query exemplars in Prometheus to link a metric spike to a specific trace
prometheus.io · 6 steps · unrated
Enable and query Prometheus exemplar storage to correlate metric anomalies with specific traces
prometheus.io · 6 steps · unrated

Give your agent this knowledge — and 15,600+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans