Interview Prep/Monitoring & Observability/Tracing, OpenTelemetry and CloudWatch

Exemplars don't show on Grafana latency graphs

AdvancedTroubleshootingTracing, OpenTelemetry and CloudWatch
Answer

Likely causes → Prometheus isn't started with --enable-feature=exemplar-storage, the app doesn't attach trace IDs to observations, scraping doesn't use OpenMetrics, or the panel's "Exemplars" toggle is off.

Diagnose →

curl -s -H 'Accept: application/openmetrics-text' http://app:8080/metrics | grep '# {trace_id'

Fix → Enable exemplar storage, use a client library that attaches exemplars from the active span, toggle Exemplars in the query, and configure the data source's exemplar link to Tempo with trace_id.

Prevent → Include exemplars in the instrumentation library defaults.

All Monitoring & Observability questions Roadmap: Logging & tracing

More on Tracing, OpenTelemetry and CloudWatch