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

stacklok / toolhive / 24126081599
65%

Build:
DEFAULT BRANCH: main
Ran 08 Apr 2026 08:42AM UTC
Jobs 1
Files 607
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 Apr 2026 08:36AM UTC coverage: 65.145% (-0.05%) from 65.19%
24126081599

push

github

web-flow
fix(telemetry): warn instead of crashing when OTLP endpoint has no enabled exporters (#4648)

* fix(telemetry): warn instead of crashing when OTLP endpoint has no enabled exporters

When an OTLP endpoint is configured via `thv config otel set-endpoint`
but both tracing and metrics are disabled, `thv serve` crashes with a
fatal validation error preventing the server from starting.

Instead of failing, log a warning and clear the endpoint so the server
starts normally. This avoids a confusing "Health check failed" error
in ToolHive Studio.

Fixes #4647

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* refactor(telemetry): extract handleUnusedEndpoint to reduce cyclomatic complexity

Move the unused endpoint check into a dedicated helper function to
keep NewServeProvider under the gocyclo threshold (15).

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

* fix(telemetry): enable tracing by default when OTLP endpoint has no enabled exporters

Instead of clearing the endpoint (which would silently drop telemetry
for users who configured an endpoint expecting it to work), enable
tracing by default so the endpoint is actually used.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

---------

Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>

0 of 15 new or added lines in 1 file covered. (0.0%)

38 existing lines in 5 files now uncovered.

54845 of 84189 relevant lines covered (65.15%)

63.56 hits per line

Uncovered Changes

Lines Coverage ∆ File
15
0.0
0.0% pkg/telemetry/serve.go

Coverage Regressions

Lines Coverage ∆ File
14
74.44
-5.19% pkg/client/config.go
11
68.42
-14.47% pkg/client/discovery.go
8
20.11
-2.87% pkg/client/manager.go
3
82.81
0.21% pkg/vmcp/composer/workflow_engine.go
2
71.43
-1.68% pkg/vmcp/k8s/manager.go
Jobs
ID Job ID Ran Files Coverage
1 24126081599.1 08 Apr 2026 08:42AM UTC 607
65.15
GitHub Action Run
Source Files on build 24126081599
  • Tree
  • List 607
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #24126081599
  • d04eb021 on github
  • Prev Build on main (#24124391614)
  • Next Build on main (#24135751172)
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