Repository navigation
Add OTEL telemetry documentation and migration guide - #3784
Conversation
Update observability docs with complete metrics reference, span attributes, configuration options, distributed tracing, and security considerations for the OTEL telemetry improvements merged in issues #3399, #3764, #3765. Add a new telemetry migration guide covering legacy-to-new attribute mapping and the useLegacyAttributes dual-emission flag. Co-Authored-By: Claude Opus 4.6 <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3784 +/- ##
=======================================
Coverage 66.81% 66.82%
=======================================
Files 438 438
Lines 43321 43321
=======================================
+ Hits 28946 28948 +2
- Misses 12128 12130 +2
+ Partials 2247 2243 -4 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Co-Authored-By: Claude Opus 4.6 <[email protected]>
Fix the Active Connections legend format in all three existing Grafana dashboards to use the correct metric attributes (server, transport) instead of the incorrect mcp_method and status labels. Add a new dashboard for the OTEL MCP semantic convention metrics (mcp.server.operation.duration) with panels for operation rate/duration by method, tool call rate/duration by tool name, transport breakdown, and error rate by type. Uses template variables for datasource and job to work across CLI and K8s deployments. Co-Authored-By: Claude Opus 4.6 <[email protected]>
There was a problem hiding this comment.
Large PR Detected
This PR exceeds 1000 lines of changes and requires justification before it can be reviewed.
How to unblock this PR:
Add a section to your PR description with the following format:
## Large PR Justification
[Explain why this PR must be large, such as:]
- Generated code that cannot be split
- Large refactoring that must be atomic
- Multiple related changes that would break if separated
- Migration or data transformationAlternative:
Consider splitting this PR into smaller, focused changes (< 1000 lines each) for easier review and reduced risk.
See our Contributing Guidelines for more details.
This review will be automatically dismissed once you add the justification section.
Large PR justification has been provided. Thank you!
|
✅ Large PR justification has been provided. The size review has been dismissed and this PR can now proceed with normal review. |
|
Claude finished @jerm-dro's task in 1m 5s —— View job Documentation Review - Typos and GrammarI've completed a thorough review of the OTEL telemetry documentation for typos and grammatical errors. Overall, the documentation is exceptionally well-written with clear structure, consistent terminology, and accurate technical content. Todo List
Review Findings✅ No Typos or Grammar Issues FoundAll three documentation files are free of typos and grammatical errors. The writing is:
✅ Positive Highlightsdocs/observability.md:
docs/operator/virtualmcpserver-observability.md:
docs/telemetry-migration-guide.md:
JSON dashboard files:
Response to Reviewer Question
Regarding the new RecommendationLGTM - The documentation is publication-ready with no typos or grammatical errors found. The large PR size is well-justified as documentation, and the quality is excellent. |
Summary
docs/observability.mdwith complete metrics reference, span attributes, configuration (CLI flags, config file, K8s CRD), distributed tracing details, and security considerationsdocs/operator/virtualmcpserver-observability.mdwith full vMCP backend and workflow metric tables, span naming conventions, and trace context propagationdocs/telemetry-migration-guide.mdcovering legacy→new attribute mapping, theuseLegacyAttributesdual-emission flag, deprecation timeline, and step-by-step migration instructionsDocuments the OTEL telemetry improvements from parent issue #3399 (12 merged PRs) and references future work tracked in #3764 and #3765.
Test plan
pkg/telemetry/middleware.goandpkg/vmcp/server/telemetry.gocmd/thv/app/run_flags.goLarge PR Justification