Add instrumentation for Google Vertex AI (@google-cloud/vertexai)
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 58/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- google-cloud, nodejs, typescript
调研方向
Start by reading the existing instrumentation under packages/server-utils/src/ai/google-genai/ and the integration wiring in src/integrations/google-genai.ts, then compare the Vertex AI SDK entry points named in the issue. Add the standalone integration under packages/server-utils/src/ai/google-vertexai/, wire it through src/integrations/google-vertexai.ts and getTracingIntegrations(), and cover generation, chat, streaming, model, token, and finish-reason attributes.
由索引模型根据 Issue 内容生成。
描述
Add native gen-AI instrumentation for the standalone Google Vertex AI SDK, @google-cloud/vertexai (repo).
Coverage status / why this is a partial gap
Vertex is already reachable two ways today, so this is specifically about the standalone SDK:
@google/genai(which we already instrument) can target the Vertex backend viavertexai: true— already covered.@ai-sdk/google-vertex(Vercel AI SDK provider, ~13.6M/mo) — covered by proxy through ourvercel-aiintegration.@google-cloud/vertexaistandalone SDK — not covered. This issue tracks that path.
Relevance (npm)
@google-cloud/vertexai: ~4.0M downloads/month (~33.7M last year). Slightly above its trailing-12-month run-rate, though Google is steering users toward the unified@google/genaiSDK, so weigh this against the fact that the modern path is already instrumented.
Rough scope
- Add instrumentation logic under
packages/server-utils/src/ai/google-vertexai/and wire it up viasrc/integrations/google-vertexai.ts, registered ingetTracingIntegrations()(per the AI-integration architecture; runtime packages re-export from@sentry/server-utils). - Instrument
VertexAI->getGenerativeModel().generateContent()/generateContentStream()(and chat sessions), plus streaming. - Emit
gen_ai.*spans following the span attribute conventions (gen_ai.provider.name = google_vertex, request/response model, token usage, finish reasons). Much of the response/attribute shaping likely overlaps with the existinggoogle-genaiinstrumentation and can be shared. - Not OpenAI wire-compatible, so it needs its own instrumentation (can't reuse the
openai-compatibleshim).
- 主要语言
- TypeScript
- 星标
- 8.7k
- 派生
- 1.9k
- 平均合并
- 1 天 16 小时
- 30 天内合并 PR
- 576
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
getsentry/sentry-javascript 的其他 Issue
-
Browser Bug Next.js Traces Waiting for: Product Owner
难度 2/5 1-3 小时 新手友好度 75/100
getsentry/sentry-javascript#24672 · 1 条评论 ·
-
Flaky Test React Router Framework Spans Tests
难度 2/5 1-3 小时 新手友好度 68/100
getsentry/sentry-javascript#24348 · 1 条评论 ·
-
javascript
难度 2/5 1-3 小时 新手友好度 75/100
getsentry/sentry-javascript#24200 · 2 条评论 ·
-
javascript Task
难度 2/5 1-3 小时 新手友好度 82/100
getsentry/sentry-javascript#24134 · 1 条评论 ·
-
Cloudflare Workers javascript Tests
难度 2/5 1-3 小时 新手友好度 78/100
getsentry/sentry-javascript#24051 · 1 条评论 ·
查看 getsentry/sentry-javascript 的全部 Issue
相似的 Issue
-
bug(cli): hapi doctor inline-media prints a fabricated B:\ helper-script path in packaged installs 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
-
Crush 未关闭
难度 1/5 1 小时以内 新手友好度 85/100
catppuccin/catppuccin#3125 ·
-
难度 1/5 1 小时以内 新手友好度 90/100
ElementsProject/cln-application#167 · 1 条评论 · 1 个 reaction ·
-
难度 2/5 1-3 小时 新手友好度 75/100
Quantco/pnpm-licenses#17 ·
-
难度 2/5 1-3 小时 新手友好度 75/100