Skip to content

feat(attributes): Complete the gen_ai.tool.definitions alias group - #595

Open
JPeer264 wants to merge 2 commits into
mainfrom
jp/conv-gen-ai-tool-definitions-alias
Open

feat(attributes): Complete the gen_ai.tool.definitions alias group#595
JPeer264 wants to merge 2 commits into
mainfrom
jp/conv-gen-ai-tool-definitions-alias

Conversation

@JPeer264

Copy link
Copy Markdown
Member

gen_ai.request.available_tools, ai.tools and ai.prompt.tools all replace onto gen_ai.tool.definitions, but none of the four named the others. gen_ai.request.available_tools even carried an empty alias array and ai.tools had none at all, which is why the symmetry test stayed green. All four now list each other.

Supersedes #590, which GitHub auto-closed during a rebase of the stack.

Replaced by getsentry/sentry-javascript#22820

@github-actions

github-actions Bot commented Aug 27, 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

  • Complete the gen_ai.tool.definitions alias group by JPeer264 in #595
  • Complete net.* aliases and transform net.transport by JPeer264 in #588
  • Name the replacements for the deprecated http.target by JPeer264 in #587
  • Add url.path.params.<key> (deprecated) in favor of url.path.parameter.<key> by JPeer264 in #586
  • Add graphql.source (deprecated) in favor of graphql.document by JPeer264 in #584
  • Add legacy Vercel AI span attributes (deprecated) by JPeer264 in #583
  • Add legacy AMQP and Redis span attributes (deprecated) by JPeer264 in #581
  • Add HTTP body size and status text attributes by msonnb in #574
  • Add graphql.processing.type by andreiborza in #572

Other

  • (span-names) Add url.domainrule for http.client spans by Lms24 in #575

Bug Fixes 🐛

Names

  • Add gen_ai.function_id and gen_ai.pipeline.name to agent span name templates by RulaKhaled in #593
  • Add missing gen_ai ops to span name rules by Lms24 in #579
  • Include tool name in gen_ai.execute_tool span names by Lms24 in #580
  • Correct graphql span name examples by andreiborza in #573

Internal Changes 🔧

  • (attributes) Add search alias for segment name by nsdeschenes in #577
  • (search-metadata) Add visibility field by nsdeschenes in #597

🤖 This preview updates automatically when you update the PR.

@JPeer264
JPeer264 marked this pull request as ready for review August 27, 2026 16:45
@JPeer264
JPeer264 requested review from a team, Lms24, cleptric, mjq and nsdeschenes as code owners August 27, 2026 16:45
@JPeer264
JPeer264 force-pushed the jp/conv-gen-ai-tool-definitions-alias branch from ab9324d to 640063f Compare August 27, 2026 16:49
Comment thread model/attributes/gen_ai/gen_ai__tool__definitions.json
@JPeer264
JPeer264 force-pushed the jp/conv-gen-ai-tool-definitions-alias branch from 640063f to 684df12 Compare August 27, 2026 17:29

@Lms24 Lms24 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The gen_ai aliases look correct but for the ai ones please see the Seer comment

Comment thread model/attributes/gen_ai/gen_ai__tool__definitions.json
@JPeer264
JPeer264 force-pushed the jp/conv-gen-ai-tool-definitions-alias branch from 684df12 to 67174a2 Compare August 28, 2026 11:49
@JPeer264
JPeer264 force-pushed the jp/conv-gen-ai-tool-definitions-alias branch from 67174a2 to 906fc56 Compare August 28, 2026 12:12
Base automatically changed from jp/conv-net-alias-fixes to main August 28, 2026 12:26
`gen_ai.request.available_tools`, `ai.tools` and `ai.prompt.tools` all
replace onto `gen_ai.tool.definitions`, but none of the four named the
others. `gen_ai.request.available_tools` even carried an empty `alias`
array, and `ai.tools` had none at all, which is why the symmetry test stayed
green. All four now list each other.

Replaced by getsentry/sentry-javascript#22820

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@JPeer264
JPeer264 force-pushed the jp/conv-gen-ai-tool-definitions-alias branch from 906fc56 to c424824 Compare August 28, 2026 12:26
…initions

The ai.tools and ai.prompt.tools attributes are string[], while
gen_ai.tool.definitions and gen_ai.request.available_tools are string.
Type-diverging attributes are not aliases, so keep only the deprecation
replacement chain for the ai.* attributes.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@JPeer264
JPeer264 requested a review from Lms24 August 28, 2026 13:00
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.

2 participants