[bot] Instrument Portkey AI (140,424 weekly downloads)
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 56/100
- issue の種類
- 機能追加
- 明瞭さ
- おおむね明確
- 活発さ
- 活発
- 技術スタック
- node.js, typescript
調査の方向性
まず、既存の openrouter と ai-sdk の自動計装設定、js/src/auto-instrumentations/configs/all.ts のレジストリ、e2e/scenarios/ 配下のシナリオを読みます。これらのパターンを portkey-ai SDK のソース、およびその Portkey クライアントと chat completions API と比較します。Portkey の生成呼び出しとストリーミング呼び出しが計装され、エンドツーエンドシナリオでカバーされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
<!-- library-gap-audit: portkey-ai-gateway-sdk -->
Summary
Portkey AI's official Node.js SDK (portkey-ai) is a drop-in, OpenAI-SDK-shaped client (portkey.chat.completions.create(...)) that routes generation calls through Portkey's gateway to 250+ LLMs, with its own prompt-management and completion-execution surface distinct from the underlying provider SDKs. This execution surface is not instrumented anywhere in this repository.
What's missing
new Portkey({...})client construction andportkey.chat.completions.create(...)(and streaming variants) — the SDK's primary generation-execution API — has no auto-instrumentation config, wrapper, or e2e scenario in this repo.- None of
portkey-ai,Portkey, orPORTKEY_GATEWAY_URLappear anywhere injs/src/,js/src/auto-instrumentations/configs/all.ts, or anye2e/scenarios/*directory. (This is distinct from the already-instrumentedopenrouter/ai-sdkgateway-style configs, which target different packages.)
Weekly downloads
Weekly downloads: 140,424 (as of 2026-09-14; window 2026-09-05–2026-09-11; source https://api.npmjs.org/downloads/point/last-week/portkey-ai).
Braintrust docs status
unclear — Braintrust publishes a comparison article, "Braintrust vs Portkey" (https://www.braintrust.dev/articles/braintrust-vs-portkey), describing a pattern where Portkey stays in the request path for routing/guardrails while traces are sent to Braintrust "through its SDK or OpenTelemetry integration" — but this describes manual OTel/generic tracing, not a dedicated auto-instrumentation wrapper for the portkey-ai package. Portkey does not appear in Braintrust's main integrations catalog at https://www.braintrust.dev/docs/integrations (full grid enumerated in the companion E2B gap issue).
Upstream sources
- https://www.npmjs.com/package/portkey-ai (official Node.js SDK)
- https://github.com/Portkey-AI/portkey-node-sdk
- https://portkey.ai/docs/api-reference/sdk/node
Local repo files inspected
js/src/auto-instrumentations/configs/all.ts(full instrumentation registry — no Portkey entry)- Repo-wide case-insensitive search for
portkeyacross the working tree (no matches) e2e/scenarios/directory listing (noportkey-named scenario)
- 主要言語
- TypeScript
- スター
- 27
- フォーク
- 13
- 平均マージ
- 2日 20時間
- マージ済み PR(30日)
- 66
コントリビューションガイド
このリポジトリのコントリビューションガイドは索引されていません
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
braintrustdata/braintrust-sdk-javascript のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 68/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 58/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 25/100
-
難易度 5/5 1週間以上 初心者へのやさしさ 28/100
braintrustdata/braintrust-sdk-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 ·
-
Add a SECURITY.md オープン
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
ElementsProject/cln-application#167 · コメント 1 件 · リアクション 1 件 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
Quantco/pnpm-licenses#17 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100