Claude Code can export user_prompt, tool_decision and tool_result events that share session.id, prompt.id and tool_use_id. Prompt text and tool details are redacted unless you opt in with OTEL_LOG_USER_PROMPTS and OTEL_LOG_TOOL_DETAILS. Turn them on before an incident, then join the events to replay one prompt's tool calls.
Read in this order
- OfficialMonitoring (Claude Code docs)Lists the event names, correlation IDs and the opt-in flags that unredact prompts and tool inputs.