Skip to content

Add OTEL telemetry documentation and migration guide - #3784

Merged
ChrisJBurns merged 5 commits into
mainfrom
docs/otel-telemetry-documentation
Feb 12, 2026
Merged

ChrisJBurns merged 5 commits into
mainfrom
docs/otel-telemetry-documentation

Conversation

@ChrisJBurns

@ChrisJBurns ChrisJBurns commented Feb 11, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Update docs/observability.md with complete metrics reference, span attributes, configuration (CLI flags, config file, K8s CRD), distributed tracing details, and security considerations
  • Update docs/operator/virtualmcpserver-observability.md with full vMCP backend and workflow metric tables, span naming conventions, and trace context propagation
  • Add new docs/telemetry-migration-guide.md covering legacy→new attribute mapping, the useLegacyAttributes dual-emission flag, deprecation timeline, and step-by-step migration instructions

Documents the OTEL telemetry improvements from parent issue #3399 (12 merged PRs) and references future work tracked in #3764 and #3765.

Test plan

  • Verify all metric names and attributes match source code in pkg/telemetry/middleware.go and pkg/vmcp/server/telemetry.go
  • Verify CLI flag names and defaults match cmd/thv/app/run_flags.go
  • Verify legacy→new attribute mapping is complete and accurate
  • Review documentation renders correctly on GitHub

Large PR Justification

  • its documentation which is a lot easier on the eyes than code

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]>
@github-actions github-actions Bot added the size/L Large PR: 600-999 lines changed label Feb 11, 2026
@codecov

codecov Bot commented Feb 11, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 66.82%. Comparing base (471f878) to head (47166b3).
⚠️ Report is 1 commits behind head on main.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@github-actions github-actions Bot added size/L Large PR: 600-999 lines changed and removed size/L Large PR: 600-999 lines changed labels Feb 11, 2026
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]>

@github-actions github-actions Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 transformation

Alternative:

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.

@github-actions github-actions Bot added size/XL Extra large PR: 1000+ lines changed and removed size/L Large PR: 600-999 lines changed labels Feb 11, 2026
@ChrisJBurns
ChrisJBurns marked this pull request as ready for review February 11, 2026 22:37
@github-actions github-actions Bot added size/XL Extra large PR: 1000+ lines changed and removed size/XL Extra large PR: 1000+ lines changed labels Feb 11, 2026
@github-actions
github-actions Bot dismissed their stale review February 12, 2026 19:19

Large PR justification has been provided. Thank you!

@github-actions

Copy link
Copy Markdown
Contributor

✅ Large PR justification has been provided. The size review has been dismissed and this PR can now proceed with normal review.

@github-actions github-actions Bot added size/XL Extra large PR: 1000+ lines changed and removed size/XL Extra large PR: 1000+ lines changed labels Feb 12, 2026
@ChrisJBurns ChrisJBurns changed the title DRAFT: Add comprehensive OTEL telemetry documentation and migration guide DRAFT: Add OTEL telemetry documentation and migration guide Feb 12, 2026
@ChrisJBurns ChrisJBurns changed the title DRAFT: Add OTEL telemetry documentation and migration guide Add OTEL telemetry documentation and migration guide Feb 12, 2026

@jerm-dro jerm-dro left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM @claude review for typos and grammatical errors.

@claude

claude Bot commented Feb 12, 2026 •

Copy link
Copy Markdown
Contributor

Claude finished @jerm-dro's task in 1m 5s —— View job


Documentation Review - Typos and Grammar

I'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

  • Read and review docs/observability.md
  • Read and review docs/operator/virtualmcpserver-observability.md
  • Read and review docs/telemetry-migration-guide.md
  • Check JSON dashboard files
  • Compile and post review feedback

Review Findings

✅ No Typos or Grammar Issues Found

All three documentation files are free of typos and grammatical errors. The writing is:

  • Clear and concise
  • Technically accurate
  • Consistently formatted
  • Well-structured with appropriate headers and tables

✅ Positive Highlights

docs/observability.md:

  • Excellent use of Mermaid diagrams for architecture visualization
  • Comprehensive metrics reference with well-organized tables
  • Clear configuration examples for CLI, config file, and Kubernetes CRD
  • Good cross-references to related documentation

docs/operator/virtualmcpserver-observability.md:

  • Well-structured metrics tables with clear attribute descriptions
  • Good explanation of span naming conventions with concrete examples
  • Clear distinction between backend operations and workflow executions

docs/telemetry-migration-guide.md:

  • Exceptionally clear migration guide structure
  • Comprehensive attribute mapping tables
  • Step-by-step migration instructions
  • Good use of code examples for before/after comparisons
  • Clear explanation of the dual emission strategy

JSON dashboard files:

  • Dashboard descriptions are clear and accurate
  • Panel titles are descriptive and properly formatted

Response to Reviewer Question

did you test this dashboard?

Regarding the new toolhive-mcp-otel-semconv-dashboard.json file - this question should be directed to @ChrisJBurns (the PR author). The dashboard appears to be properly structured and uses the correct metric names (mcp_server_operation_duration_seconds) and attribute names (mcp_method_name) as documented, but functional testing would require deploying it to a Grafana instance with live metrics.


Recommendation

LGTM - 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.


@ChrisJBurns
ChrisJBurns merged commit 4556e30 into main Feb 12, 2026
36 checks passed
@ChrisJBurns
ChrisJBurns deleted the docs/otel-telemetry-documentation branch February 12, 2026 20:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/XL Extra large PR: 1000+ lines changed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants