Skip to content

fix(names): Include tool name in gen_ai.execute_tool span names - #580

Merged
Lms24 merged 2 commits into
mainfrom
lms/fix-names-gen_ai-tool-name
Aug 27, 2026
Merged

Lms24 merged 2 commits into
mainfrom
lms/fix-names-gen_ai-tool-name

Conversation

@Lms24

@Lms24 Lms24 commented Aug 26, 2026 •

Copy link
Copy Markdown
Member

gen_ai.execute_tool spans carry gen_ai.tool.name and no model, so the current templates can only name them execute_tool. This PR adds a {{gen_ai.operation.name}} {{gen_ai.tool.name}} template, which matches what the JS and Python SDKs named these spans (changing this pending on this PR)

I think, tool names should be low cardinality enough to include in span names but happy to drop if I'm missing something.

Tool execution spans carry `gen_ai.tool.name` rather than a model, so the
existing templates could only name them `execute_tool`. Add a tool name
template so they get a name that identifies the tool.

Co-Authored-By: Claude <noreply@anthropic.com>
@github-actions

github-actions Bot commented Aug 26, 2026 •

Copy link
Copy Markdown

Semver Impact of This PR

🟢 Patch (bug fixes)

📋 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 graphql.processing.type by andreiborza in #572
  • (span-names) Add url.domainrule for http.client spans by Lms24 in #575

Bug Fixes 🐛

Names

  • 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

🤖 This preview updates automatically when you update the PR.

@Lms24
Lms24 marked this pull request as ready for review August 26, 2026 15:38
@Lms24
Lms24 requested review from a team, cleptric, mjq and nsdeschenes as code owners August 26, 2026 15:38
@Lms24
Lms24 enabled auto-merge (squash) August 27, 2026 10:54
@Lms24 Lms24 self-assigned this Aug 27, 2026
@Lms24
Lms24 merged commit 4c7e805 into main Aug 27, 2026
16 checks passed
@Lms24
Lms24 deleted the lms/fix-names-gen_ai-tool-name branch August 27, 2026 10:57
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