Skip to content

Update OTel docs to match current implementation#584

Open
ChrisJBurns wants to merge 2 commits intomainfrom
update-otel-docs
Open

Update OTel docs to match current implementation#584
ChrisJBurns wants to merge 2 commits intomainfrom
update-otel-docs

Conversation

@ChrisJBurns
Copy link
Contributor

Summary

  • Update observability concept docs to use new OpenTelemetry semantic convention attribute names (http.request.method, mcp.method.name, gen_ai.tool.name, etc.) instead of legacy names
  • Add vMCP-specific metrics documentation (backend, workflow, and optimizer metrics) to the vMCP telemetry guide
  • Add --otel-use-legacy-attributes flag to CLI telemetry guide and fix default service name
  • Add MCP semantic convention metrics (mcp.server.operation.duration, mcp.client.operation.duration) and trace context propagation section to concepts page

Test plan

  • Verify the site builds successfully
  • Review attribute names against ToolHive source code in pkg/telemetry/
  • Confirm vMCP metrics match pkg/vmcp/server/telemetry.go
  • Check cross-references between pages resolve correctly

🤖 Generated with Claude Code

Update observability documentation to reflect the current ToolHive
OpenTelemetry implementation, including new semantic convention
attribute names, vMCP metrics, trace context propagation, and the
legacy attributes compatibility flag.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Copilot AI review requested due to automatic review settings March 4, 2026 16:26
@vercel
Copy link

vercel bot commented Mar 4, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
docs-website Ready Ready Preview, Comment Mar 4, 2026 6:27pm

Request Review

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates ToolHive observability documentation to align with the current OpenTelemetry attribute/metric naming scheme, and expands vMCP telemetry guidance so users can more easily interpret traces and metrics across ToolHive and vMCP deployments.

Changes:

  • Updated trace attribute examples to use newer OTel semantic convention attribute names (HTTP/MCP/GenAI).
  • Added vMCP-specific metrics sections (backend/workflow/optimizer) and expanded distributed tracing details.
  • Updated CLI telemetry docs to include --otel-use-legacy-attributes and corrected the documented default service name.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 2 comments.

File Description
docs/toolhive/guides-vmcp/telemetry-and-metrics.mdx Adds vMCP metric inventories and tracing span naming/attributes; updates sampling example.
docs/toolhive/guides-cli/telemetry-and-metrics.mdx Documents default service name, adds --otel-use-legacy-attributes flag to usage + table.
docs/toolhive/concepts/observability.mdx Refreshes trace/attribute examples, adds MCP semantic-convention metrics + trace context propagation section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants