Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

9 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 …by pushing six environment variables through `/managed/settings`: * `CLAUDE_CODE_ENABLE_TELEMETRY=1` * `OTEL_METRICS_EXPORTER`, `OTEL_LOGS_EXPORTER`, and `OTEL_TRACES_EXPORTER`, each set to `otlp` if… Desktop application Claude Code CLI · in the page desktop …naged-settings). > > To export telemetry from Code tab sessions, set `CLAUDE_CODE_ENABLE_TELEMETRY` and the `OTEL_*` variables in the `env` block of your Claude Code managed settings, as shown in [adm… 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" },… All settings Claude Code CLI · in the page settings-reference …on, choose where it goes, or choose what content it captures: * `CLAUDE_CODE_ENABLE_TELEMETRY`, plus the enhanced telemetry beta pair `CLAUDE_CODE_ENHANCED_TELEMETRY_BETA` and `ENABLE_ENHANCED_TE…
Feedback