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

stacklok / toolhive / 24126081599 / 1
66%
main: 66%

Build:
DEFAULT BRANCH: main
Ran 08 Apr 2026 08:42AM UTC
Files 607
Run time 17s
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.1

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>

54845 of 84189 relevant lines covered (65.15%)

63.56 hits per line

Source Files on job 24126081599.1
  • Tree
  • List 607
  • Changed 7
  • Source Changed 1
  • Coverage Changed 7
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 24126081599
  • d04eb021 on github
  • Prev Job for on main (#24124391614.1)
  • Next Job for on main (#24135751172.1)
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