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.
More on Tracing, OpenTelemetry and CloudWatch
Traces show only the frontend span; downstream services start new tracesIntermediateTraces break at the API gateway / ingress controllerIntermediateNo traces at all arrive; the app logs `Failed to export spans. The request could not be executed. Full error message: Failed to connect to localhost/127.0.0.1:4317`BeginnerSDK error `Unimplemented` / `404 Not Found` when exporting to the collectorIntermediateOTel collector logs `Exporting failed. Will retry the request after interval. {"kind": "exporter", "data_type": "traces", "name": "otlp", "error": "rpc error: code = Unavailable desc = connection error"}`IntermediateCollector logs `Dropping data because sending_queue is full`Advanced