Skip to content

Conversation

chargome
Copy link
Member

No description provided.

RulaKhaled and others added 6 commits September 22, 2025 14:16
…tation (#17723)

Adds support for Google GenAI manual instrumentation in
@sentry/cloudflare and @sentry/vercel-edge.
To instrument the Google GenAI client, wrap it with
Sentry.instrumentGoogleGenAIClient and set recording settings.

```
import * as Sentry from '@sentry/cloudflare';
import { GoogleGenAI } from '@google/genai';

const genAI = new GoogleGenAI({ apiKey: 'your-api-key' });
const client = Sentry.instrumentGoogleGenAIClient(genAI, { 
  recordInputs: true,
  recordOutputs: true 
});

// use the wrapped client with models api
const model = client.models.generateContent({
  model: 'gemini-1.5-pro',
  contents: [{ role: 'user', parts: [{ text: 'Hello!' }] }]
});

// or use chat functionality
const chat = client.chats.create({ model: 'gemini-1.5-flash' });
const response = await chat.sendMessage({ message: 'Tell me a joke' });
```
)

This may flake, so just using any available port instead.

Closes #17716
…17712)

We often store isolationscopes on spans via `setCapturedScopesOnSpan` and
retrieve them via `getCapturedScopesOnSpan`. This change wraps the
scopes in `WeakRef` to attempt fixing a potential memory leak when spans
hold on to scopes indefinitely.

The downside is spans might end up with undefined scopes on them if the
scope was garbage collected, we'll have to see if that's an issue or
not.
[Gitflow] Merge master into develop
This PR adds the following:
- an E2E test case for Nitro `$fetch` requests
- Upgrading the Nuxt 4 version (previously in alpha)
- Deleting the `app.vue` file as this is not needed when using the
`app/pages` directory (following the [Nuxt
docs](https://nuxt.com/docs/4.x/guide/directory-structure/app/app))
@chargome chargome self-assigned this Sep 23, 2025
Copy link
Contributor

github-actions bot commented Sep 23, 2025

size-limit report 📦

Path Size % Change Change
@sentry/browser 24.26 kB added added
@sentry/browser - with treeshaking flags 22.77 kB added added
@sentry/browser (incl. Tracing) 40.4 kB added added
@sentry/browser (incl. Tracing, Replay) 78.78 kB added added
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 68.44 kB added added
@sentry/browser (incl. Tracing, Replay with Canvas) 83.44 kB added added
@sentry/browser (incl. Tracing, Replay, Feedback) 95.66 kB added added
@sentry/browser (incl. Feedback) 40.97 kB added added
@sentry/browser (incl. sendFeedback) 28.91 kB added added
@sentry/browser (incl. FeedbackAsync) 33.84 kB added added
@sentry/react 25.98 kB added added
@sentry/react (incl. Tracing) 42.38 kB added added
@sentry/vue 28.78 kB added added
@sentry/vue (incl. Tracing) 42.21 kB added added
@sentry/svelte 24.29 kB added added
CDN Bundle 25.77 kB added added
CDN Bundle (incl. Tracing) 40.24 kB added added
CDN Bundle (incl. Tracing, Replay) 76.46 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) 81.96 kB added added
CDN Bundle - uncompressed 75.37 kB added added
CDN Bundle (incl. Tracing) - uncompressed 119.13 kB added added
CDN Bundle (incl. Tracing, Replay) - uncompressed 234.25 kB added added
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 247.02 kB added added
@sentry/nextjs (client) 44.4 kB added added
@sentry/sveltekit (client) 40.82 kB added added
@sentry/node-core 50.02 kB added added
@sentry/node 152.25 kB added added
@sentry/node - without tracing 91.94 kB added added
@sentry/aws-serverless 105.39 kB added added

Copy link
Contributor

github-actions bot commented Sep 23, 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,585 - - added
GET With Sentry 1,322 15% - added
GET With Sentry (error only) 5,836 68% - added
POST Baseline 1,151 - - added
POST With Sentry 486 42% - added
POST With Sentry (error only) 1,024 89% - added
MYSQL Baseline 3,252 - - added
MYSQL With Sentry 403 12% - added
MYSQL With Sentry (error only) 2,615 80% - added

@chargome chargome force-pushed the prepare-release/10.14.0 branch from 5b6f7c2 to dfd421b Compare September 23, 2025 08:28
@chargome chargome merged commit 3e34bd6 into master Sep 23, 2025
185 checks passed
@chargome chargome deleted the prepare-release/10.14.0 branch September 23, 2025 08:45
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