Skip to content

feat(gen_ai): Add tool call result size attribute - #679

Merged
obostjancic merged 2 commits into
mainfrom
ognjenbostjancic/tet-3073-show-tool-output-size-vs-avg-in-ai-span-details
Oct 20, 2026
Merged

obostjancic merged 2 commits into
mainfrom
ognjenbostjancic/tet-3073-show-tool-output-size-vs-avg-in-ai-span-details

Conversation

@obostjancic

@obostjancic obostjancic commented Oct 6, 2026 •

Copy link
Copy Markdown
Member

Defines gen_ai.tool.call.result.size as the UTF-8 byte length of the serialized tool result before truncation, providing a numeric attribute for historical output-size comparisons. It is a non-OTel integer attribute exposed as bytes in search; empty results are 0, while unavailable results are omitted.

This PR defines the contract only. Relay enrichment and the span-details comparison will follow in separate PRs.

Closes TET-3085
Refs TET-3073

Define serialized tool result size in UTF-8 bytes for historical output-size comparisons.

Refs TET-3085

Refs TET-3073
@vercel

vercel Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

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

Project Deployment Actions Updated
sentry-conventions Ready Ready Preview Oct 20, 2026 11:25am UTC

Request Review

@linear-code

linear-code Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

TET-3085

TET-3073

@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Semver Impact of This PR

🟡 Minor (new features)

📋 Changelog Preview

This is how your changes will appear in the changelog.
Entries from this PR are highlighted with a left border (blockquote style).


New Features ✨

Attributes

  • Add message_origin as a sentry.link.type value by JPeer264 in #724
  • Add aws.lambda.resource_mapping.id attribute by pabloDeputter in #710
  • Add object to the sentry.category values by pabloDeputter in #721
  • Add http.request.duration by loewenheim in #697

Names

  • Add span name rules for rpc spans by pabloDeputter in #714
  • Add queue.publish/create/receive/process/settle to messaging span names by pabloDeputter in #705

Other

  • (descriptions) AWS Lambda function descriptions by pabloDeputter in #720
  • (gen_ai) Add tool call result size attribute by obostjancic in #679
  • (ops) Add object.copy op by pabloDeputter in #706
  • Add view.render op by alexander-alderman-webb in #699

Bug Fixes 🐛

  • (attributes) Apply consistent scrubbing across deprecations by mjq in #692

Documentation 📚

  • Clarify cache.ttl for 0, no expiry, and reads by s1gr1d in #725

Internal Changes 🔧

  • (attributes) Scrub S3 object keys by default by pabloDeputter in #713
  • (repo) Update CODEOWNERS to include @giortzisg by Lms24 in #708
  • Deprecate gen_ai.responses in favor of gen_ai.chat by alexander-alderman-webb in #703
  • Add deprecated messaging ops set by the Python SDK by alexander-alderman-webb in #693
  • Add view.response.render op, deprecated in favor of view.render by alexander-alderman-webb in #700
  • Add event.django op, deprecated in favor of function by alexander-alderman-webb in #698

🤖 This preview updates automatically when you update the PR.

@alexander-alderman-webb alexander-alderman-webb left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me.
If you haven't discussed this with ingest yet give them a few days to review.

@obostjancic
obostjancic enabled auto-merge (squash) October 6, 2026 15:28
@obostjancic
obostjancic disabled auto-merge October 6, 2026 15:28
@obostjancic
obostjancic enabled auto-merge (squash) October 12, 2026 13:06
@obostjancic
obostjancic disabled auto-merge October 20, 2026 09:48
@obostjancic
obostjancic enabled auto-merge (squash) October 20, 2026 09:48
@obostjancic
obostjancic merged commit b2e7c61 into main Oct 20, 2026
18 checks passed
@obostjancic
obostjancic deleted the ognjenbostjancic/tet-3073-show-tool-output-size-vs-avg-in-ai-span-details branch October 20, 2026 11:27

This branch was successfully deployed

1 active deployment
Preview — c416baf7 Deployed Oct 20, 2026 by vercel[bot]
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.

5 participants