• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

stacklok / toolhive / 20041675862
60%

Build:
DEFAULT BRANCH: main
Ran 08 Dec 2025 08:28PM UTC
Jobs 1
Files 395
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

08 Dec 2025 08:22PM UTC coverage: 49.463% (-0.2%) from 49.649%
20041675862

push

github

web-flow
Instrument vMCP and Document o11y Configuration (#2906)

This PR adds metrics and distributed tracing to the Virtual MCP Server (vMCP), providing visibility into backend calls and composite workflow executions.

Implementation

Add telemetry.go with decorator pattern for instrumenting backend clients and workflow executors
Instrument the vMCP server with the existing telemetry middleware.
Emit metrics for backend requests (request count, errors, duration) and workflow executions
Create distributed tracing spans for backend operations and workflow executions
Plumb telemetry configuration from VirtualMCPServer CRD to the vMCP server
Metrics Emitted
toolhive_vmcp_backends_discovered - Number of backends discovered
toolhive_vmcp_backend_requests - Request count per backend
toolhive_vmcp_backend_errors - Error count per backend
toolhive_vmcp_backend_requests_duration - Request duration histogram
toolhive_vmcp_workflow_executionsl - Workflow execution count
toolhive_vmcp_workflow_errors - Workflow error count
toolhive_vmcp_workflow_duration - Workflow duration histogram

documentation and test for e2e emission.
---------

Signed-off-by: Jeremy Drouillard <jeremy@stacklok.com>
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: jerm-dro <10532181+jerm-dro@users.noreply.github.com>
Co-authored-by: Jakub Hrozek <jakub.hrozek@posteo.se>

12 of 237 new or added lines in 7 files covered. (5.06%)

26449 of 53472 relevant lines covered (49.46%)

58.14 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
5
0.0
0.0% cmd/thv-operator/api/v1alpha1/zz_generated.deepcopy.go
16
0.0
0.0% test/integration/vmcp/helpers/vmcp_server.go
21
0.0
0.0% cmd/vmcp/app/commands.go
28
67.92
-5.54% pkg/vmcp/server/server.go
155
0.0
pkg/vmcp/server/telemetry.go
Jobs
ID Job ID Ran Files Coverage
1 20041675862.1 08 Dec 2025 08:28PM UTC 395
49.46
GitHub Action Run
Source Files on build 20041675862
  • Tree
  • List 395
  • Changed 11
  • Source Changed 10
  • Coverage Changed 9
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #20041675862
  • 155ba42a on github
  • Prev Build on main (#20038516308)
  • Next Build on main (#20042998234)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc