Summary
thv serve fails to start with exit code 1 when an OTLP endpoint is configured via thv config otel set-endpoint but both tracing and metrics are disabled. This causes ToolHive Studio to show a "Health check failed" error since the server never comes up.
Error
Error: failed to initialize telemetry: OTLP endpoint is configured but both tracing and metrics are disabled; either enable tracing or metrics, or remove the endpoint
Steps to Reproduce
- Configure an OTLP endpoint:
thv config otel set-endpoint https://some-collector.example.com
- Do not enable tracing or metrics
- Run
thv serve
- Process exits immediately with code 1
Expected Behavior
thv serve should start successfully, logging a warning that the OTLP endpoint is configured but unused (since tracing and metrics are both disabled). The endpoint configuration should be silently ignored rather than treated as a fatal error.
Workaround
thv config otel unset-endpoint
Impact
This is a fatal error that prevents the server from starting entirely. Users of ToolHive Studio hit this as a blank "Health check failed" screen with no clear indication of the root cause — the error is only visible in the main process logs.
Summary
thv servefails to start with exit code 1 when an OTLP endpoint is configured viathv config otel set-endpointbut both tracing and metrics are disabled. This causes ToolHive Studio to show a "Health check failed" error since the server never comes up.Error
Steps to Reproduce
thv config otel set-endpoint https://some-collector.example.comthv serveExpected Behavior
thv serveshould start successfully, logging a warning that the OTLP endpoint is configured but unused (since tracing and metrics are both disabled). The endpoint configuration should be silently ignored rather than treated as a fatal error.Workaround
Impact
This is a fatal error that prevents the server from starting entirely. Users of ToolHive Studio hit this as a blank "Health check failed" screen with no clear indication of the root cause — the error is only visible in the main process logs.