Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

feat(core): Add tool calls attributes for Anthropic AI #17478

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
RulaKhaled merged 5 commits into develop from tool-calls-anthropic
Sep 4, 2025

Conversation

Copy link
Member

@RulaKhaled RulaKhaled commented Aug 28, 2025
edited
Loading

This PR adds missing tool call attributes, we add gen_ai.response.tool_calls attribute for Anthropic AI, supporting both streaming and non-streaming requests.

Core changes:

Request Side - Capture available tools:

  • Extract tools extract from request params
  • Set gen_ai.request.available_tools attribute

Response Side - Capture actual tool calls:

  • Extract from response.tool_calls
  • Set gen_ai.response.tool_calls attribute for both

Streaming Support (in streaming.ts):

  • Accumulation of tool calls during streaming
  • Respects recordOutputs privacy setting

seer-by-sentry[bot] reacted with hooray emoji
Copy link
Contributor

github-actions bot commented Aug 28, 2025
edited
Loading

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.16 kB - -
@sentry/browser - with treeshaking flags 22.73 kB - -
@sentry/browser (incl. Tracing) 39.87 kB - -
@sentry/browser (incl. Tracing, Replay) 78.23 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 68.02 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 82.91 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 95.11 kB - -
@sentry/browser (incl. Feedback) 40.89 kB - -
@sentry/browser (incl. sendFeedback) 28.81 kB - -
@sentry/browser (incl. FeedbackAsync) 33.75 kB - -
@sentry/react 25.88 kB +0.01% +1 B 🔺
@sentry/react (incl. Tracing) 41.89 kB - -
@sentry/vue 28.64 kB - -
@sentry/vue (incl. Tracing) 41.69 kB - -
@sentry/svelte 24.18 kB - -
CDN Bundle 25.66 kB - -
CDN Bundle (incl. Tracing) 39.75 kB - -
CDN Bundle (incl. Tracing, Replay) 76.03 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 81.5 kB - -
CDN Bundle - uncompressed 74.96 kB - -
CDN Bundle (incl. Tracing) - uncompressed 117.59 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 232.69 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 245.45 kB - -
@sentry/nextjs (client) 43.89 kB - -
@sentry/sveltekit (client) 40.33 kB - -
@sentry/node-core 49.61 kB +0.01% +1 B 🔺
@sentry/node 150.6 kB +0.23% +331 B 🔺
@sentry/node - without tracing 92.18 kB +0.01% +1 B 🔺
@sentry/aws-serverless 105.48 kB - -

View base workflow run

@RulaKhaled RulaKhaled marked this pull request as ready for review August 29, 2025 08:57
cursor[bot]

This comment was marked as outdated.

@RulaKhaled RulaKhaled changed the title (削除) [WIP] feat(core): Add tool calls attributes for Anthropic AI (削除ここまで) (追記) eat(core): Add tool calls attributes for Anthropic AI (追記ここまで) Aug 29, 2025
@RulaKhaled RulaKhaled changed the title (削除) eat(core): Add tool calls attributes for Anthropic AI (削除ここまで) (追記) feat(core): Add tool calls attributes for Anthropic AI (追記ここまで) Aug 29, 2025
Co-authored-by: Andrei <168741329+andreiborza@users.noreply.github.com>
cursor[bot]

This comment was marked as outdated.

Copy link
Contributor

github-actions bot commented Sep 4, 2025
edited
Loading

node-overhead report 🧳

Note: This is a synthetic benchmark with a minimal express app and does not necessarily reflect the real-world performance impact in an application.

Scenario Requests/s % of Baseline Prev. Requests/s Change %
GET Baseline 9,612 - 8,687 +11%
GET With Sentry 1,352 14% 1,275 +6%
GET With Sentry (error only) 6,094 63% 5,998 +2%
POST Baseline 1,220 - 1,142 +7%
POST With Sentry 498 41% 496 +0%
POST With Sentry (error only) 1,082 89% 984 +10%
MYSQL Baseline 3,461 - 3,247 +7%
MYSQL With Sentry 469 14% 435 +8%
MYSQL With Sentry (error only) 2,807 81% 2,648 +6%

View base workflow run

@RulaKhaled RulaKhaled merged commit 9e70a5a into develop Sep 4, 2025
535 of 550 checks passed
@RulaKhaled RulaKhaled deleted the tool-calls-anthropic branch September 4, 2025 11:52
Copy link

Add a i attributes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@cursor cursor[bot] cursor[bot] left review comments

@andreiborza andreiborza andreiborza approved these changes

Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

AltStyle によって変換されたページ (->オリジナル) /