Search the documentation
8 pages for claude_code_enable_telemetry.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Hosting the Agent SDK
Claude Code CLI · in the page
agent-sdk/hosting
…you export metrics and logs alone. ```bash title=".env" theme={null} CLAUDE_CODE_ENABLE_TELEMETRY=1 CLAUDE_CODE_ENHANCED_TELEMETRY_BETA=1 OTEL_TRACES_EXPORTER=otlp OTEL_METRICS_EXPORTER=otlp OTEL_LOG…
Observability with OpenTelemetry
Claude Code CLI · in the page
agent-sdk/observability
…) below. ## Enable telemetry export Telemetry is off until you set `CLAUDE_CODE_ENABLE_TELEMETRY=1` and choose at least one exporter. The most common configuration sends all three signals over OTLP…
Claude apps gateway configuration
Claude Code CLI · in the page
claude-apps-gateway-config
…x env vars to every connected client through `/managed/settings`: * `CLAUDE_CODE_ENABLE_TELEMETRY=1` * `OTEL_METRICS_EXPORTER=otlp` * `OTEL_LOGS_EXPORTER=otlp` * `OTEL_TRACES_EXPORTER=otlp` * `OTEL_E…
Environment variables
Claude Code CLI · in the page
env-vars
…| | `CLAUDE_CODE_ENABLE_TELEMETRY` | Set to `1` to enable OpenTelemetry data collection for metrics and loggin…
Monitoring
Claude Code CLI · in the page
monitoring-usage
…ronment variables: ```bash theme={null} # 1. Enable telemetry export CLAUDE_CODE_ENABLE_TELEMETRY=1 # 2. Choose exporters (both are optional - configure only what you need) export OTEL_METRICS_EXPOR…
Self-hosted environments reference
Claude Code CLI · in the page
self-hosted-environments-reference
…ing, and telemetry stays on unless `DISABLE_TELEMETRY` is also set. `CLAUDE_CODE_ENABLE_TELEMETRY` is unrelated: it enables OpenTelemetry export to your own collector, as described in [Monitoring](/d…
Claude Code settings
Claude Code CLI · in the page
settings
…ead(./.env.*)", "Read(./secrets/**)" ] }, "env": { "CLAUDE_CODE_ENABLE_TELEMETRY": "1", "OTEL_METRICS_EXPORTER": "otlp", "OTEL_EXPORTER_OTLP_PROTOCOL": "http/protobuf" },…
Example settings files
Claude Code CLI · in the page
settings-example
…"Read(./secrets/**)" ] }, "env": { "CLAUDE_CODE_ENABLE_TELEMETRY": "1", "OTEL_METRICS_EXPORTER": "otlp", "OTEL_EXPORTER_OTLP_PROTOCOL": "grpc",…