{"name":"OTEL_LOG_ASSISTANT_RESPONSES","slug":"otel-log-assistant-responses","family":"env","title":"Environment variables","noun":"environment variable","description":"Controls whether the OpenTelemetry `assistant_response` event carries the text of Claude's reply. True (`1`, `true`, `yes`, `on`) puts the joined text blocks in the `response` attribute; false (`0`, `false`, `no`, `off`) sends `<REDACTED>`. Unset or any other value follows `OTEL_LOG_USER_PROMPTS`. The event always carries `response_length`.","description_source":"code","described_by":{"bundle":"2.1.285","author":"claude-opus-5-5"},"presence":{"first_seen":"2.1.193","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":104,"mined_builds":150,"first_cited":{"version":"2.1.193","released_at":"2026-06-25 19:05:08","spans":1}},"aliases":[],"entries":[{"version":"2.1.193","anchor":"otel-log-assistant-responses-environment-variable","heading":"OTEL_LOG_ASSISTANT_RESPONSES Environment Variable","line":null,"released_at":"2026-06-25 19:05:08","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},{"source":"claude-code","path":"whats-new\/2026-w26","title":"Week 26 \u00b7 June 22\u201326, 2026","documented":false},{"source":"claude-docs","path":"third-party\/claude-desktop\/configuration","title":"Configuration reference","documented":false}],"docs_total":4,"gates":[],"related":[{"name":"OTEL_LOG_MANAGED_SETTINGS","slug":"otel-log-managed-settings","description":"Managed settings resolution is now reported to telemetry, with sensitive values redacted"},{"name":"OTEL_LOG_RAW_API_BODIES","slug":"otel-log-raw-api-bodies","description":"Changing the raw-API-body telemetry variable now takes effect instead of being frozen at startup."},{"name":"OTEL_LOG_TOOL_CONTENT","slug":"otel-log-tool-content","description":"Project settings files can no longer set OpenTelemetry exporter endpoints, headers, certificates or telemetry opt-ins"},{"name":"OTEL_LOG_TOOL_DETAILS","slug":"otel-log-tool-details","description":"Boolean; only `1`, `true`, `yes` or `on` turn it on. When on, Claude Code's telemetry carries tool details it otherwise leaves out, such as file paths and full Bash commands on tool events, skill and subagent names, error text, and command names that are otherwise reported as `custom`."},{"name":"OTEL_LOG_USER_PROMPTS","slug":"otel-log-user-prompts","description":"Remote-session telemetry now redacts prompts, model names and agent ids when sending traces off-box"},{"name":"OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT","slug":"otel-logrecord-attribute-value-length-limit","description":"Maximum length of log record attribute values in the bundled OpenTelemetry logs SDK; unset means no limit. Claude Code also uses the smallest of this, `OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT`, `OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT` and `CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH` (default `61440`) as the character cap on the content it records in telemetry, such as prompts, system prompts, model output and tool inputs and results, cutting longer content and appending a `[TRUNCATED - Content exceeds ... limit]` note."},{"name":"OTEL_LOGS_EXPORT_INTERVAL","slug":"otel-logs-export-interval","description":"Milliseconds between batched exports for the OpenTelemetry log exporters set by `OTEL_LOGS_EXPORTER`; default `5000` when unset. Claude Code's first-party event logging also uses it as its batch delay when its remote config gives no `scheduledDelayMillis`, with a default of `10000` there."},{"name":"OTEL_LOGS_EXPORTER","slug":"otel-logs-exporter","description":"Telemetry export can now send metrics, logs, and traces to different destinations instead of forcing all three to OTLP"}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/otel-log-assistant-responses","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}