ref(core)!: Rename gen_ai.tool.output to gen_ai.tool.call.result - #22822
Open
nicohrubec wants to merge 1 commit into
Open
ref(core)!: Rename gen_ai.tool.output to gen_ai.tool.call.result#22822nicohrubec wants to merge 1 commit into
gen_ai.tool.output to gen_ai.tool.call.result#22822nicohrubec wants to merge 1 commit into
Conversation
nicohrubec
marked this pull request as ready for review
July 29, 2026 12:44
nicohrubec
requested review from
andreiborza,
isaacs and
mydea
and removed request for
a team
July 29, 2026 12:44
Contributor
size-limit report 📦
|
andreiborza
approved these changes
Jul 29, 2026
| outputObj && typeof outputObj === 'object' && 'content' in outputObj ? outputObj.content : output; | ||
| span.setAttributes({ | ||
| [GEN_AI_TOOL_OUTPUT]: typeof content === 'string' ? content : JSON.stringify(content), | ||
| [GEN_AI_TOOL_CALL_RESULT]: typeof content === 'string' ? content : JSON.stringify(content), |
Member
There was a problem hiding this comment.
q: Should we be more defensive with the stringifying? I think we have a helper for that now 🤔.
Emit the `gen_ai.tool.call.result` attribute from `@sentry/conventions` instead of the deprecated `gen_ai.tool.output` alias across all AI integrations (LangChain, LangGraph, Vercel AI). Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
nicohrubec
force-pushed
the
ref/genai-tool-output-to-tool-call-result
branch
from
July 29, 2026 14:02
7805efb to
a29ef5e
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Switches all AI integrations from the deprecated
gen_ai.tool.outputattribute to its@sentry/conventionsreplacementgen_ai.tool.call.result.Part of #22482