feat(otel): add exemplar support for metrics-to-traces linking#23
Open
jilio wants to merge 1 commit into
Open
Conversation
Enabled OpenTelemetry exemplars on histogram metrics to create clickable links from metrics to distributed traces in Grafana. Changes: - Added documentation to histogram recording explaining exemplar support - Configured Grafana Prometheus datasource with exemplar trace destinations - Added Jaeger as a datasource in Grafana for trace visualization - Enabled exemplar display on all p95 duration panels in dashboard - p95 Handler Duration by Event Type - p95 Async Handler Duration by Event Type - p95 Persist Duration by Event Type Exemplars automatically attach trace context (trace ID and span ID) to histogram samples when there's an active span in the context. This allows users to: 1. See high-latency samples directly on metric graphs 2. Click on exemplar points to jump to the corresponding trace in Jaeger 3. Debug performance issues by correlating metrics with detailed traces All existing tests pass with 100% coverage maintained. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Enabled OpenTelemetry exemplars on histogram metrics to create clickable links from metrics to distributed traces in Grafana.
Changes
Configuration
Dashboard Enhancements
Documentation
How It Works
OpenTelemetry automatically attaches trace context (trace ID and span ID) to histogram metric samples when recording occurs within an active span. In Grafana, these exemplars appear as clickable points on the metric graphs that link directly to the corresponding trace in Jaeger.
Benefits
Testing
Screenshots
Once deployed, users will see:
🤖 Generated with Claude Code
Co-Authored-By: Claude noreply@anthropic.com