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.213 ·

OTEL: Configurable Content Truncation Limit

Entry
JSON All of v2.1.213
EntryKind: in v2.1.213,
ImprovementsSection of the release
What

The length at which telemetry content is truncated is now configurable via environment variables, and respects standard OpenTelemetry limit variables.

Usage
export CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH=8192   # Claude Code specific cap
# Or use standard OTel variables (Claude Code takes the minimum):
export OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT=4096
export OTEL_LOGRECORD_ATTRIBUTE_VALUE_LENGTH_LIMIT=4096
export OTEL_SPAN_ATTRIBUTE_VALUE_LENGTH_LIMIT=4096
Details
  • Previously the limit was hardcoded to 60 KB
  • The truncation message now includes the actual limit: [TRUNCATED - Content exceeds NKB limit]
Evidence

Configurable limit implementation (search for "CLAUDE_CODE_OTEL_CONTENT_MAX_LENGTH", "OTEL_ATTRIBUTE_VALUE_LENGTH_LIMIT")

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.213 →

Feedback