Follow Discord
Sweep 22 Oct 2026 · 04:32Z Build v2.1.308 527 read Stable v2.1.308 Latest v2.1.308 Next v2.1.308 Feeds RSS JSON llms.txt llms-full.txt Unofficial

Claude Code v2.1.179 ·

CLAUDE_CODE_OTEL_DIAG_STDERR Environment Variable

Entry
JSON All of v2.1.179
EntryKind: in v2.1.179,
New FeaturesSection of the release
What

When set, OpenTelemetry diagnostic errors are written directly to stderr in addition to the internal debug log. Useful when debugging custom telemetry or OTEL integrations.

Usage
CLAUDE_CODE_OTEL_DIAG_STDERR=1 claude
# OTEL errors now appear on stderr prefixed with "[3P telemetry] OTEL diag error:"
Details
  • Without this flag, OTEL errors only appear in the internal log (visible via /debug)
  • With the flag, errors are also streamed to process.stderr immediately
  • The flag is stripped before spawning subprocesses so it doesn't leak
Evidence

New stderr path (search for "CLAUDE_CODE_OTEL_DIAG_STDERR")

Strings lifted out of the shipped bundle, so the claim above can be checked against them.

See this entry in the whole of v2.1.179 →

Feedback