Skip to content

ref(tracing): Drop per-string cap on gen_ai log attributes#630

Open
obostjancic wants to merge 1 commit into
mainfrom
ref/gen-ai-string-truncation
Open

ref(tracing): Drop per-string cap on gen_ai log attributes#630
obostjancic wants to merge 1 commit into
mainfrom
ref/gen-ai-string-truncation

Conversation

@obostjancic

@obostjancic obostjancic commented Jun 23, 2026

Copy link
Copy Markdown
Member

Removes the 2,000-character per-string cap on gen_ai log attributes so values are no longer clipped mid-content. The cap was especially harmful for user messages formatted with XML-style tags, where truncation cut tags in half and broke formatting in Conversations UI (example).

Total output is still bounded by the 12,000-character cap on the whole serialized attribute in serializeGenAiAttribute; secret redaction and blob omission are unchanged.

Gen-AI log attribute strings were capped at 2,000 characters per value
before serialization. Remove the per-string truncation so individual
string values are no longer clipped; the 12,000-character cap on the
whole serialized attribute still bounds total output, and secret
redaction and blob omission are unchanged.

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
@vercel

vercel Bot commented Jun 23, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
junior-docs Ready Ready Preview, Comment Jun 23, 2026 4:37pm

Request Review

@obostjancic obostjancic changed the title ref(logging): Drop per-string cap on gen_ai log attributes ref(tracing): Drop per-string cap on gen_ai log attributes Jun 23, 2026
@obostjancic obostjancic marked this pull request as ready for review June 23, 2026 16:47
@obostjancic obostjancic requested a review from dcramer June 23, 2026 16:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant