Skip to content

feat(server-utils): Migrate Google GenAI integration to orchestrion#21970

Open
nicohrubec wants to merge 1 commit into
developfrom
nh/google-genai-orchestrion
Open

feat(server-utils): Migrate Google GenAI integration to orchestrion#21970
nicohrubec wants to merge 1 commit into
developfrom
nh/google-genai-orchestrion

Conversation

@nicohrubec

@nicohrubec nicohrubec commented Jul 6, 2026

Copy link
Copy Markdown
Member

Adds an orchestrion (diagnostics-channel injection) based Google GenAI integration to server-utils, covering all APIs (generateContent, generateContentStream, embedContent, chat sendMessage/sendMessageStream) and both streaming and non-streaming mode. Leaves the core integration intact and only exports the utils the orchestrion integration needs.

Closes #20913

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes and found 2 potential issues.

Fix All in Cursor

❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, enable autofix in the Cursor dashboard.

Want reviews to match your repository better? Bugbot Learning can learn team-specific rules from PR activity. A team admin can enable Learning in the Cursor dashboard.

Reviewed by Cursor Bugbot for commit 6c727f1. Configure here.

Comment thread packages/server-utils/src/integrations/tracing-channel/google-genai.ts Outdated
@nicohrubec nicohrubec force-pushed the nh/google-genai-orchestrion branch 2 times, most recently from a97be1b to 57595fb Compare July 6, 2026 08:16
@github-actions

github-actions Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

size-limit report 📦

⚠️ Warning: Base artifact is not the latest one, because the latest workflow run is not done yet. This may lead to incorrect results. Try to re-run all tests to get up to date results.

Path Size % Change Change
@sentry/browser 27.59 kB - -
@sentry/browser - with treeshaking flags 26.03 kB - -
@sentry/browser (incl. Tracing) 46.24 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.01 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.01 kB - -
@sentry/browser (incl. Tracing, Replay) 85.49 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.1 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 90.19 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 102.84 kB - -
@sentry/browser (incl. Feedback) 44.76 kB - -
@sentry/browser (incl. sendFeedback) 32.38 kB - -
@sentry/browser (incl. FeedbackAsync) 37.51 kB - -
@sentry/browser (incl. Metrics) 28.67 kB - -
@sentry/browser (incl. Logs) 28.91 kB - -
@sentry/browser (incl. Metrics & Logs) 29.59 kB - -
@sentry/react 29.38 kB - -
@sentry/react (incl. Tracing) 48.51 kB - -
@sentry/vue 33.03 kB - -
@sentry/vue (incl. Tracing) 48.11 kB - -
@sentry/svelte 27.61 kB - -
CDN Bundle 30 kB - -
CDN Bundle (incl. Tracing) 48.24 kB - -
CDN Bundle (incl. Logs, Metrics) 31.57 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.54 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.77 kB - -
CDN Bundle (incl. Tracing, Replay) 85.7 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.49 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.78 kB - -
CDN Bundle - uncompressed 89.35 kB - -
CDN Bundle (incl. Tracing) - uncompressed 145.96 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.05 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 149.93 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 218.59 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 264.97 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 268.93 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 278.68 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 282.62 kB - -
@sentry/nextjs (client) 50.95 kB - -
@sentry/sveltekit (client) 46.65 kB - -
@sentry/core/server 78.39 kB +0.02% +8 B 🔺
@sentry/core/browser 64.74 kB +0.03% +17 B 🔺
@sentry/node-core 63.2 kB - -
@sentry/node 123.21 kB +0.01% +4 B 🔺
@sentry/node/import (ESM hook with diagnostics-channel injection) 69.95 kB - -
@sentry/node/light 50.72 kB -0.01% -1 B 🔽
@sentry/node - without tracing 74.24 kB -0.01% -1 B 🔽
@sentry/aws-serverless 85.02 kB - -
@sentry/cloudflare (withSentry) - minified 181.68 kB - -
@sentry/cloudflare (withSentry) 449.39 kB - -

View base workflow run

@nicohrubec nicohrubec force-pushed the nh/google-genai-orchestrion branch from 57595fb to 634d5b0 Compare July 6, 2026 11:58
@nicohrubec nicohrubec marked this pull request as ready for review July 6, 2026 12:16
@nicohrubec nicohrubec requested a review from a team as a code owner July 6, 2026 12:16
@nicohrubec nicohrubec requested review from JPeer264, andreiborza, chargome and mydea and removed request for a team July 6, 2026 12:16
Adds an orchestrion (diagnostics-channel injection) based Google GenAI integration to server-utils, covering all APIs (generateContent, generateContentStream, embedContent, chat sendMessage/sendMessageStream) and both streaming and non-streaming mode. Leaves the core integration intact and only exports the utils the orchestrion integration needs.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
@nicohrubec nicohrubec force-pushed the nh/google-genai-orchestrion branch from 634d5b0 to 0e0b84a Compare July 6, 2026 13:17
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.

Rewrite SentryGoogleGenAiInstrumentation to orchestrion

1 participant