Follow Discord
Sweep 22 Oct 2026 · 21:04Z Build v2.1.309 528 read Stable v2.1.308 Latest v2.1.309 Next v2.1.309 Feeds RSS JSON llms.txt llms-full.txt Unofficial
HomeDocsSearch
Search the documentation

5 pages for otel_log_raw_api_bodies.

Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.

Modifying system prompts Claude Code CLI · in the page agent-sdk/modifying-system-prompts …log the requests Claude Code sends: * **Raw request logging**: set [`OTEL_LOG_RAW_API_BODIES`](/docs/en/monitoring-usage#api-request-body-event) to `file:<dir>`. Claude Code writes each request body… Observability with OpenTelemetry Claude Code CLI · in the page agent-sdk/observability …their own gates](/docs/en/monitoring-usage.md#new-context-gates) | | `OTEL_LOG_RAW_API_BODIES` | Full Anthropic Messages API request and response JSON as `claude_code.api_request_body` and `claude_cod… Monitoring Claude Code CLI · in the page monitoring-usage …rn it on. Requires Claude Code v2.1.274 or later | `1` to enable | | `OTEL_LOG_RAW_API_BODIES` | Emit the full Anthropic Messages API request and response JSON as `api_request_body` / `api_response_bo… Configure server-managed settings Claude Code CLI · in the page server-managed-settings …or [`ENABLE_BETA_TRACING_DETAILED`](/docs/en/env-vars#variables) or [`OTEL_LOG_RAW_API_BODIES`](/docs/en/env-vars#variables) applies without the dialog, because it only turns detailed tracing or raw A… All settings Claude Code CLI · in the page settings-reference …e `ProgramFiles` family. * Variables that export session content: [`OTEL_LOG_RAW_API_BODIES`](/docs/en/env-vars#variables) and the detailed beta tracing pair `ENABLE_BETA_TRACING_DETAILED` and `BETA…
Feedback