| title | thv config otel set-env-vars | ||
|---|---|---|---|
| hide_title | true | ||
| description | Reference for ToolHive CLI command `thv config otel set-env-vars` | ||
| last_update |
|
||
| slug | thv_config_otel_set-env-vars | ||
| mdx |
|
Set the OpenTelemetry environment variables
Set the list of environment variable names to include in OpenTelemetry spans.
These environment variables will be used by default when running MCP servers unless overridden by the --otel-env-vars flag.
Example:
thv config otel set-env-vars USER,HOME,PATH
thv config otel set-env-vars <var1,var2,...> [flags]
-h, --help help for set-env-vars
--debug Enable debug mode
- thv config otel - Manage OpenTelemetry configuration