Skip to content

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

Merged
nicohrubec merged 2 commits into
developfrom
nh/google-genai-orchestrion
Jul 7, 2026
Merged

feat(server-utils): Migrate Google GenAI integration to orchestrion#21970
nicohrubec merged 2 commits 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.27 kB - -
@sentry/browser (incl. Tracing + Span Streaming) 48.03 kB - -
@sentry/browser (incl. Tracing, Profiling) 51.03 kB - -
@sentry/browser (incl. Tracing, Replay) 85.56 kB - -
@sentry/browser (incl. Tracing, Replay) - with treeshaking flags 75.17 kB - -
@sentry/browser (incl. Tracing, Replay with Canvas) 90.26 kB - -
@sentry/browser (incl. Tracing, Replay, Feedback) 102.91 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.53 kB - -
@sentry/vue 33.03 kB - -
@sentry/vue (incl. Tracing) 48.16 kB - -
@sentry/svelte 27.61 kB - -
CDN Bundle 30 kB - -
CDN Bundle (incl. Tracing) 48.26 kB - -
CDN Bundle (incl. Logs, Metrics) 31.57 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) 49.57 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) 70.81 kB - -
CDN Bundle (incl. Tracing, Replay) 85.73 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) 87.04 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) 91.55 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) 92.83 kB - -
CDN Bundle - uncompressed 89.35 kB - -
CDN Bundle (incl. Tracing) - uncompressed 145.99 kB - -
CDN Bundle (incl. Logs, Metrics) - uncompressed 94.05 kB - -
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed 149.96 kB - -
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed 218.75 kB - -
CDN Bundle (incl. Tracing, Replay) - uncompressed 265.16 kB - -
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed 269.12 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed 278.86 kB - -
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed 282.81 kB - -
@sentry/nextjs (client) 50.94 kB - -
@sentry/sveltekit (client) 46.68 kB - -
@sentry/core/server 78.39 kB +0.02% +9 B 🔺
@sentry/core/browser 64.74 kB +0.03% +18 B 🔺
@sentry/node-core 63.21 kB +0.01% +1 B 🔺
@sentry/node 123.91 kB +0.01% +5 B 🔺
@sentry/node (incl. diagnostics channel injection) 130.16 kB +0.28% +351 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.81 kB - -
@sentry/aws-serverless 85.6 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
span: Span,
params: Record<string, unknown>,
isEmbeddings: boolean,
operationName: string,

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.

q: Are there other values this can take else than embeddings?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

yes, for instance chat for chat completions

@nicohrubec nicohrubec merged commit 5a91e4c into develop Jul 7, 2026
300 checks passed
@nicohrubec nicohrubec deleted the nh/google-genai-orchestrion branch July 7, 2026 19: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

2 participants