Skip to content

Conversation

chargome
Copy link
Member

@chargome chargome commented Sep 4, 2025

No description provided.

mydea and others added 6 commits September 3, 2025 16:49
…17519)

We used to mock the OpenAI client and manually instrument this. This
adds a test for actual auto-instrumentation of OpenAI, and adjusts the
origin to be fixed.
[Gitflow] Merge master into develop
)

This PR adds support for a new browser SDK init option,
`propagateTraceparent`, as [spec'd out in our develop
docs](https://develop.sentry.dev/sdk/telemetry/traces/#propagatetraceparent)

If users opt into `propagateTraceparent`, browser SDKs will attach a W3C
compliant `traceparent` header to outgoing fetch and XHR requests, in
addition to `sentry-trace` and `baggage` headers.
This PR adds missing tool call attributes, we
addgen_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

---------

Co-authored-by: Andrei <168741329+andreiborza@users.noreply.github.com>
@chargome chargome self-assigned this Sep 4, 2025
@chargome chargome requested a review from a team as a code owner September 4, 2025 12:05
@chargome chargome force-pushed the prepare-release/10.10.0 branch from 6294f12 to 22c7722 Compare September 4, 2025 12:12
Copy link
Contributor

github-actions bot commented Sep 4, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.16 kB added added
@sentry/browser - with treeshaking flags 22.73 kB added added
@sentry/browser (incl. Tracing) 40.13 kB added added
@sentry/browser (incl. Tracing, Replay) 78.46 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 68.24 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 83.15 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 95.36 kB added added
@sentry/browser (incl. Feedback) 40.89 kB added added
@sentry/browser (incl. sendFeedback) 28.81 kB added added
@sentry/browser (incl. FeedbackAsync) 33.75 kB added added
@sentry/react 25.88 kB added added
@sentry/react (incl. Tracing) 42.1 kB added added
@sentry/vue 28.64 kB added added
@sentry/vue (incl. Tracing) 41.93 kB added added
@sentry/svelte 24.18 kB added added
CDN Bundle 25.74 kB added added
CDN Bundle (incl. Tracing) 39.98 kB added added
CDN Bundle (incl. Tracing, Replay) 76.27 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 81.73 kB added added
CDN Bundle - uncompressed 75.16 kB added added
CDN Bundle (incl. Tracing) - uncompressed 118.26 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 233.35 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 246.12 kB added added
@sentry/nextjs (client) 44.12 kB added added
@sentry/sveltekit (client) 40.57 kB added added
@sentry/node-core 49.69 kB added added
@sentry/node 150.66 kB added added
@sentry/node - without tracing 92.26 kB added added
@sentry/aws-serverless 105.56 kB added added

Copy link
Contributor

github-actions bot commented Sep 4, 2025

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 8,885 - - added
GET With Sentry 1,213 14% - added
GET With Sentry (error only) 5,759 65% - added
POST Baseline 1,145 - - added
POST With Sentry 475 41% - added
POST With Sentry (error only) 1,026 90% - added
MYSQL Baseline 3,231 - - added
MYSQL With Sentry 422 13% - added
MYSQL With Sentry (error only) 2,636 82% - added

@chargome chargome merged commit e13b3aa into master Sep 4, 2025
532 of 547 checks passed
@chargome chargome deleted the prepare-release/10.10.0 branch September 4, 2025 13:13
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.

6 participants