Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

[bot] Instrument Portkey AI (140,424 weekly downloads)

Aperta
#2,482 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
56/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
node.js, typescript

Direzione di ricerca

Inizia leggendo le configurazioni esistenti di auto-instrumentation di openrouter e ai-sdk, il registro in js/src/auto-instrumentations/configs/all.ts e gli scenari in e2e/scenarios/. Confronta questi pattern con i sorgenti dell’SDK portkey-ai e con le relative API del client Portkey e di chat completions. Il lavoro è completo quando le chiamate di generazione e streaming di Portkey sono instrumentate e coperte da uno scenario end-to-end.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

<!-- 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 and portkey.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, or PORTKEY_GATEWAY_URL appear anywhere in js/src/, js/src/auto-instrumentations/configs/all.ts, or any e2e/scenarios/* directory. (This is distinct from the already-instrumented openrouter/ai-sdk gateway-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

Local repo files inspected

  • js/src/auto-instrumentations/configs/all.ts (full instrumentation registry — no Portkey entry)
  • Repo-wide case-insensitive search for portkey across the working tree (no matches)
  • e2e/scenarios/ directory listing (no portkey-named scenario)
Lingua principale
TypeScript
Stelle
27
Fork
13
Merge medio
2g 20h
PR unite (30g)
66

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di braintrustdata/braintrust-sdk-javascript

Tutte le issue di braintrustdata/braintrust-sdk-javascript

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.