{"name":"ENABLE_ENHANCED_TELEMETRY_BETA","slug":"enable-enhanced-telemetry-beta","family":"env","title":"Environment variables","noun":"environment variable","description":"Older name for `CLAUDE_CODE_ENHANCED_TELEMETRY_BETA`, read from `process.env` only when that variable is unset. A value of `1`, `true`, `yes` or `on` turns on the enhanced OpenTelemetry tracing spans (such as the `interaction` span); `ENABLE_BETA_TRACING_DETAILED` also turns them on. A true value in a settings `env` block is listed with the note `(adds traces to the telemetry export)`.","description_source":"code","described_by":{"bundle":"2.1.286","author":"claude-opus-5-5"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":150,"mined_builds":150,"first_cited":null},"aliases":[],"entries":[{"version":"2.1.7","anchor":"enhanced-telemetry-beta","heading":"Enhanced Telemetry Beta","line":null,"released_at":"2026-01-13 22:55:49","reason":"found in this entry's text"}],"entries_total":1,"docs":[{"source":"claude-code","path":"monitoring-usage","title":"Monitoring","documented":false},{"source":"claude-code","path":"settings-reference","title":"All settings","documented":false}],"docs_total":2,"gates":[],"related":[{"name":"ENABLE_BETA_TRACING_DETAILED","slug":"enable-beta-tracing-detailed","description":"Detailed beta tracing now also requires that the session is not diskless, so it stops in sessions that avoid writing to disk"},{"name":"ENABLE_CLAUDEAI_MCP_SERVERS","slug":"enable-claudeai-mcp-servers","description":"Eval sandboxes force claude.ai MCP servers off so they can't reach real servers."},{"name":"ENABLE_LOCKLESS_UPDATES","slug":"enable-lockless-updates","description":null},{"name":"ENABLE_LSP_TOOL","slug":"enable-lsp-tool","description":null},{"name":"ENABLE_MCP_LARGE_OUTPUT_FILES","slug":"enable-mcp-large-output-files","description":"MCP_TOOL_TIMEOUT is parsed with a minimum of 1 and ENABLE_MCP_LARGE_OUTPUT_FILES only disables when explicitly false."},{"name":"ENABLE_PID_BASED_VERSION_LOCKING","slug":"enable-pid-based-version-locking","description":null},{"name":"ENABLE_PROMPT_CACHING_1H","slug":"enable-prompt-caching-1h","description":"You can pin the prompt cache to five minutes or an hour, separately for subagents."},{"name":"ENABLE_PROMPT_CACHING_1H_BEDROCK","slug":"enable-prompt-caching-1h-bedrock","description":"When `1`, `true`, `yes` or `on` and the API provider is Bedrock, requests use a `1h` prompt cache TTL. It applies only when no earlier source decides the TTL: `FORCE_PROMPT_CACHING_5M`, the `CLAUDE_CODE_PROMPT_CACHE_TTL` or `CLAUDE_CODE_SUBAGENT_PROMPT_CACHE_TTL` env vars, the `promptCacheTtl` or `subagentPromptCacheTtl` settings, and an agent's frontmatter TTL all take precedence. `ENABLE_PROMPT_CACHING_1H` does the same for every provider."},{"name":"ENABLE_SESSION_BACKGROUNDING","slug":"enable-session-backgrounding","description":null},{"name":"ENABLE_SESSION_PERSISTENCE","slug":"enable-session-persistence","description":null}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/enable-enhanced-telemetry-beta","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}