What
The parsed value of OTEL_LOG_RAW_API_BODIES is cached per host and recomputed whenever the environment variable's text differs from what was cached, instead of being parsed on every use or frozen for the process lifetime.
Evidence
t = process.env.OTEL_LOG_RAW_API_BODIES;
Strings lifted out of the shipped bundle, so the claim above can be checked against them.
Names in the bundleOTEL_LOG_RAW_API_BODIES
The entry above is what we published on the day. These lines were added later, as Anthropic's own pages caught up, and they sit beside the original rather than replacing it.
Confirmed since
Anthropic's documentation has since written up OTEL_LOG_RAW_API_BODIES, on Claude Code changelog.
* Improved `OTEL_LOG_RAW_API_BODIES=file:<dir>` output: a new `index.jsonl` and `request_body_id` / `message.id` event attributes link each response to its request file and transcript messagechangelog see the edit
One source agreesOne thing we can check says the same as this entry.
Anthropic's documentation agrees
Anthropic's documentation has since written up OTEL_LOG_RAW_API_BODIES, on Claude Code changelog.