[DOCS] `OTEL_LOG_USER_PROMPTS` missing from Environment Variables reference

Resolved 💬 4 comments Opened Jan 18, 2026 by coygeek Closed Feb 28, 2026

Documentation Type

Missing documentation (feature not documented)

Documentation Location

https://code.claude.com/docs/en/settings#environment-variables

Section/Topic

The "Environment variables" reference table in the Settings documentation.

Current Documentation

The "Environment variables" table in docs/en/settings lists numerous OpenTelemetry variables (e.g., CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS, DISABLE_TELEMETRY), but it skips OTEL_LOG_USER_PROMPTS.

However, the Monitoring documentation at https://code.claude.com/docs/en/monitoring-usage#common-configuration-variables explicitly lists this variable:

OTEL_LOG_USER_PROMPTS | Enable logging of user prompt content (default: disabled) | 1 to enable

What's Wrong or Missing?

The documentation is inconsistent. While the variable is documented in the specific Monitoring guide, it is missing from the central "Environment variables" reference table in the Settings page. This makes the Settings page an incomplete source of truth for available configuration options.

Suggested Improvement

Please add OTEL_LOG_USER_PROMPTS to the Environment variables table in https://code.claude.com/docs/en/settings.

Suggested Row Content:
| Variable | Purpose |
| :--- | :--- |
| OTEL_LOG_USER_PROMPTS | Set to 1 to enable logging of redacted user prompt content in OpenTelemetry events (default: disabled). |

Impact

High - Prevents users from using a feature

Additional Context

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗