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

@nicohrubecnicohrubec 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

@cursorcursorBot 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 threadpackages/server-utils/src/integrations/tracing-channel/google-genai.ts Outdated
@nicohrubec
nicohrubecforce-pushed the nh/google-genai-orchestrion branch 2 times, most recently from a97be1b to 57595fbCompareJuly 6, 2026 08:16
@github-actions

github-actionsBot 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.

PathSize% ChangeChange
@sentry/browser27.59 kB--
@sentry/browser - with treeshaking flags26.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 flags75.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/react29.38 kB--
@sentry/react (incl. Tracing)48.53 kB--
@sentry/vue33.03 kB--
@sentry/vue (incl. Tracing)48.16 kB--
@sentry/svelte27.61 kB--
CDN Bundle30 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 - uncompressed89.35 kB--
CDN Bundle (incl. Tracing) - uncompressed145.99 kB--
CDN Bundle (incl. Logs, Metrics) - uncompressed94.05 kB--
CDN Bundle (incl. Tracing, Logs, Metrics) - uncompressed149.96 kB--
CDN Bundle (incl. Replay, Logs, Metrics) - uncompressed218.75 kB--
CDN Bundle (incl. Tracing, Replay) - uncompressed265.16 kB--
CDN Bundle (incl. Tracing, Replay, Logs, Metrics) - uncompressed269.12 kB--
CDN Bundle (incl. Tracing, Replay, Feedback) - uncompressed278.86 kB--
CDN Bundle (incl. Tracing, Replay, Feedback, Logs, Metrics) - uncompressed282.81 kB--
@sentry/nextjs (client)50.94 kB--
@sentry/sveltekit (client)46.68 kB--
@sentry/core/server78.39 kB+0.02%+9 B 🔺
@sentry/core/browser64.74 kB+0.03%+18 B 🔺
@sentry/node-core63.21 kB+0.01%+1 B 🔺
@sentry/node123.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/light50.72 kB+0.01%+1 B 🔺
@sentry/node - without tracing74.81 kB--
@sentry/aws-serverless85.6 kB--
@sentry/cloudflare (withSentry) - minified181.68 kB--
@sentry/cloudflare (withSentry)449.39 kB--

View base workflow run

@nicohrubec
nicohrubecforce-pushed the nh/google-genai-orchestrion branch from 57595fb to 634d5b0CompareJuly 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 ownerJuly 6, 2026 12:16
@nicohrubec
nicohrubec requested review from JPeer264, andreiborza, chargome and mydea and removed request for a teamJuly 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
nicohrubecforce-pushed the nh/google-genai-orchestrion branch from 634d5b0 to 0e0b84aCompareJuly 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
MemberAuthor

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 developJul 7, 2026
300 checks passed
@nicohrubec
nicohrubec deleted the nh/google-genai-orchestrion branch July 7, 2026 19:17
Sign up for freeto 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

@nicohrubec@chargome