{"version":"2.1.213","anchor":"otel-configurable-content-truncation-limit","canonical_anchor":"otel-configurable-content-truncation-limit","heading":"OTEL: Configurable Content Truncation Limit","tier":null,"area":null,"scope":null,"heads_up":null,"url":"https:\/\/changelogs.core-directive.com\/v\/2.1.213\/e\/otel-configurable-content-truncation-limit","release_url":"https:\/\/changelogs.core-directive.com\/v\/2.1.213","markdown":"### OTEL: Configurable Content Truncation Limit\n\n**What**\n\nThe length at which telemetry content is truncated is now configurable via environment variables, and respects standard OpenTelemetry limit variables.\n\n**Usage**\n\n`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\"`)"}