⌨️OTEL_LOG_USER_PROMPTS
Also known as OTEL_LOG_ASSISTANT_RESPONSES
Set to 1, it puts your prompt text into telemetry logs.
Think of it like
It is like a call log that keeps what was said. Not just the time.
Example
Emma's team must keep a record of what people asked the AI. She turns this on, and each prompt lands in the team's log store.
Why it matters
Prompts can hold private data. Hiding them by default keeps that data out of logs.
Definition
Example code
bash
export CLAUDE_CODE_ENABLE_TELEMETRY=1
export OTEL_LOG_USER_PROMPTS=1
claudeCommon mistake
Key takeaways
- 1Prompt text in logs. When set.
- 2Hidden by default. Redacted.
- 3Answers have a twin. ASSISTANT_RESPONSES.