{"version":"2.1.193","anchor":"otel-log-assistant-responses-environment-variable","canonical_anchor":"otel-log-assistant-responses-environment-variable","heading":"OTEL_LOG_ASSISTANT_RESPONSES Environment Variable","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.193\/e\/otel-log-assistant-responses-environment-variable","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.193","markdown":"### `OTEL_LOG_ASSISTANT_RESPONSES` Environment Variable\n\n**What**\n\nA new environment variable that enables OTEL telemetry logging of assistant response content (previously only `OTEL_LOG_USER_PROMPTS` existed).\n\n**Usage**\n\n`OTEL_LOG_ASSISTANT_RESPONSES=1 claude` **Details** - When either `OTEL_LOG_ASSISTANT_RESPONSES` or `OTEL_LOG_USER_PROMPTS` is set, assistant response text is included in OTEL spans. - Without this flag, response content is logged as `<REDACTED>`. **Evidence** New env var check (search for `\"OTEL_LOG_ASSISTANT_RESPONSES\"`)"}