| title | thv config otel set-sampling-rate | ||
|---|---|---|---|
| hide_title | true | ||
| description | Reference for ToolHive CLI command `thv config otel set-sampling-rate` | ||
| last_update |
|
||
| slug | thv_config_otel_set-sampling-rate | ||
| mdx |
|
Set the OpenTelemetry sampling rate
Set the OpenTelemetry trace sampling rate (between 0.0 and 1.0).
This sampling rate will be used by default when running MCP servers unless overridden by the --otel-sampling-rate flag.
Example:
thv config otel set-sampling-rate 0.1
thv config otel set-sampling-rate <rate> [flags]
-h, --help help for set-sampling-rate
--debug Enable debug mode
- thv config otel - Manage OpenTelemetry configuration