Skip to content

fix(node): Support @google/genai v2 in auto-instrumentation - #23093

Merged
chargome merged 2 commits into
developfrom
fix/google-genai-v2-instrumentation
Aug 6, 2026
Merged

fix(node): Support @google/genai v2 in auto-instrumentation#23093
chargome merged 2 commits into
developfrom
fix/google-genai-v2-instrumentation

Conversation

@chargome

@chargome chargome commented Aug 6, 2026

Copy link
Copy Markdown
Member

The orchestrion config capped @google/genai at <2, so the code transformer never matched v2 modules and auto-instrumentation silently failed.

This bumps the cap to <3. Adds a unit test against the real transformer and a google-genai-v2 integration suite pinning @google/genai@^2.

closes #23066

The orchestrion config capped `@google/genai` at `<2`, so the code transformer
never matched v2 modules and auto-instrumentation silently did nothing (manual
instrumentation was unaffected); this bumps the cap to `<3`. Adds a unit test
against the real transformer and a `google-genai-v2` integration suite pinning
`@google/genai@^2`.

Fixes #23066

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@chargome chargome self-assigned this Aug 6, 2026
@github-actions

github-actions Bot commented Aug 6, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

Path Size % Change Change
@sentry/browser 30.12 kB - -
@sentry/browser - with treeshaking flags 28.32 kB - -
@sentry/browser (incl. Tracing) 47.53 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 47.54 kB - -
@sentry/browser (incl. Tracing, Profiling) 52.29 kB - -
@sentry/browser (incl. Tracing, Replay) 86.91 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 76.33 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 91.6 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 104.25 kB - -
@sentry/browser (incl. Feedback) 47.45 kB - -
@sentry/browser (incl. sendFeedback) 34.96 kB - -
@sentry/browser (incl. FeedbackAsync) 40.1 kB - -
@sentry/browser (incl. Metrics) 31.2 kB - -
@sentry/browser (incl. Logs) 31.41 kB - -
@sentry/browser (incl. Metrics & Logs) 32.11 kB - -
@sentry/react 31.93 kB - -
@sentry/react (incl. Tracing) 49.79 kB - -
@sentry/vue 35.23 kB - -
@sentry/vue (incl. Tracing) 49.54 kB - -
@sentry/svelte 30.14 kB - -
CDN Bundle 32.13 kB - -
CDN Bundle (incl. Tracing) 47.81 kB - -
CDN Bundle (incl. Logs, Metrics) 33.67 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.19 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 73.02 kB - -
CDN Bundle (incl. Tracing, Replay) 85.45 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 86.77 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.27 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.59 kB - -
CDN Bundle - uncompressed 95.27 kB - -
CDN Bundle (incl. Tracing) - uncompressed 142.78 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 99.9 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 146.75 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 224.6 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 262.03 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 266 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 275.74 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 279.69 kB - -
@sentry/nextjs (client) 52.36 kB - -
@sentry/sveltekit (client) 47.98 kB - -
@sentry/core/server 65.56 kB - -
@sentry/core/browser 51.82 kB - -
@sentry/node 119.23 kB -0.01% -2 B 🔽
@sentry/node/import (ESM hook with diagnostics-channel injection) 0 B added added
@sentry/node - without tracing 84.09 kB -0.01% -2 B 🔽
@sentry/aws-serverless 92.59 kB -0.01% -2 B 🔽
@sentry/cloudflare (withSentry) - minified 212.56 kB - -
@sentry/cloudflare (withSentry) 524.74 kB - -

View base workflow run

@chargome
chargome marked this pull request as ready for review August 6, 2026 12:28
@chargome
chargome requested review from a team as code owners August 6, 2026 12:28
@chargome
chargome requested review from JPeer264, mydea and nicohrubec and removed request for a team and mydea August 6, 2026 12:28
Comment thread packages/server-utils/test/orchestrion/google-genai.test.ts Outdated
Comment thread packages/server-utils/src/orchestrion/config/google-genai.ts Outdated
The transformer-level unit test covered orchestrion internals already exercised
by the per-major integration suites. Also removes a trailing comment sentence
about `Chat` that belonged to the block below it.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@chargome

chargome commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

Hm why does this add bundle size to browser?

@chargome
chargome requested a review from nicohrubec August 6, 2026 12:48

@nicohrubec nicohrubec left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nice

@chargome
chargome merged commit 7a9b5b2 into develop Aug 6, 2026
270 checks passed
@chargome
chargome deleted the fix/google-genai-v2-instrumentation branch August 6, 2026 13:26
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.

Sentry.googleGenAIIntegration auto instrumentation does not support @google/genai v2

2 participants