[bot] Fireworks AI TypeScript SDK (`@fireworksai/sdk`) not instrumented — no tracing for chat completions, embeddings, or image generation (77 weekly downloads)
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 55/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- typescript
- Bereich
- observability-sre
Rechercherichtung
Beginne mit den bestehenden Konfigurationen in js/src/auto-instrumentations/configs/, den Wrappern in js/src/wrappers/, den Plugins in js/src/instrumentation/plugins/ und e2e/scenarios/. Überprüfe, wie die aktuellen Integrationen mit den in der Issue aufgeführten Methoden von @fireworksai/sdk umgehen, und füge dann Abdeckung sowie ein e2e-Szenario hinzu; erledigt ist die Aufgabe, wenn direkte Chat-, Completion-, Embedding-, Image-, Audio- und Streaming-Aufrufe Braintrust-Spans erzeugen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Fireworks AI publishes an official TypeScript SDK: @fireworksai/sdk on npm (currently in beta, requires zod peer dependency). It provides execution APIs for chat completions, text completions, embeddings, image generation, and audio transcription via Fireworks AI's own REST API client, with HTTP requests powered by fetch. This repository has zero instrumentation for any @fireworksai/sdk surface — no wrapper, no channels, no plugin, no auto-instrumentation config. Users who call @fireworksai/sdk directly get no Braintrust spans.
What instrumentation is missing
The @fireworksai/sdk npm package exposes these execution surfaces, none of which are instrumented:
| SDK Method | Description |
|---|---|
client.chat.completions.create({ model, messages }) |
Chat completions with tool calling and structured outputs |
client.chat.completions.create({ ..., stream: true }) |
Streaming chat completions |
client.completions.create({ model, prompt }) |
Text completions |
client.embeddings.create({ model, input }) |
Text embeddings (OpenAI-compatible format) |
client.images.generate({ model, prompt }) |
Text-to-image generation |
client.audio.transcriptions.create(...) |
Audio transcription |
The SDK uses its own fetch-based HTTP client (with Zod for request/response validation) and does not use the openai npm package internally. Existing openai auto-instrumentation does not cover calls made through @fireworksai/sdk.
No coverage in any instrumentation layer:
- No wrapper function (e.g.
wrapFireworks()) - No diagnostics channels for Fireworks AI methods
- No plugin handler in
js/src/instrumentation/plugins/ - No auto-instrumentation config in
js/src/auto-instrumentations/configs/ - No e2e test scenarios
- Grep for
fireworks(case-insensitive) acrossjs/src/returns zero instrumentation matches
Indirect coverage is insufficient:
Braintrust's Fireworks AI integration page documents a gateway/OpenAI SDK approach — using the openai npm client pointed at the Braintrust gateway with Fireworks model identifiers. Users who call @fireworksai/sdk directly — which ships Fireworks' own type-safe TypeScript API client — get no spans at all under that approach.
Braintrust docs status
not_found for direct SDK instrumentation. The Braintrust Fireworks integration page documents a gateway/OpenAI SDK approach only and does not reference @fireworksai/sdk.
Upstream references
@fireworksai/sdknpm: https://www.npmjs.com/package/@fireworksai/sdk- Fireworks AI GitHub org: https://github.com/fw-ai
- Fireworks AI serverless quickstart: https://docs.fireworks.ai/getting-started/quickstart
- Fireworks AI embeddings & reranking: https://docs.fireworks.ai/guides/querying-embeddings-models
Local files inspected
js/src/auto-instrumentations/configs/— full config list:anthropic.ts,openai.ts,ai-sdk.ts,groq.ts,mistral.ts,cohere.ts,huggingface.ts,google-genai.ts,google-adk.ts,genkit.ts,openai-agents.ts,openrouter.ts,openrouter-agent.ts,claude-agent-sdk.ts,cursor-sdk.ts,github-copilot.ts,openai-codex.ts,flue.ts— no Fireworks AI config presentjs/src/wrappers/— nofireworks.tswrapper filejs/src/instrumentation/plugins/— no Fireworks AI channels or plugine2e/scenarios/— no Fireworks AI test scenarios- Full repo grep for
fireworks(case-insensitive) injs/src/— zero instrumentation matches @fireworksai/sdkinstall notes — confirmedfetch-based HTTP client withzodpeer dependency; noopenairuntime dependency
- Vorherrschende Sprache
- TypeScript
- Sterne
- 29
- Forks
- 18
- Ø Merge
- 1 T. 18 Std.
- Gemergte PRs (30 T.)
- 74
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Kein Beitragsleitfaden
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus braintrustdata/braintrust-sdk-javascript
-
AI SDK tool spans don't respect `toModelOutput`Evtl. vergeben @lforst hat das vor 1 Tag übernommen. Offentypescript
braintrustdata/braintrust-sdk-javascript#2651 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
`braintrust/hook.mjs` async `module.register()` loader makes sync-hook TypeScript loaders (ts-exec ≥ 1.5) load `.ts` modules emptyEvtl. vergeben @lforst hat das vor 1 Tag übernommen. Offentypescript
braintrustdata/braintrust-sdk-javascript#2645 · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
High TypeScript checking cost from generated Zod 3 schemasEvtl. vergeben @lforst hat das vor 7 Tagen übernommen. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 22/100
braintrustdata/braintrust-sdk-javascript#2624 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
[bot] Instrument Luma AI (17,324 weekly downloads)Evtl. vergeben @karthiksenv hat das vor 7 Tagen übernommen. Offentypescript
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
braintrustdata/braintrust-sdk-javascript#2578 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[bot] Instrument Letta Agent SDK (87,205 weekly downloads)Evtl. vergeben @karthiksenv hat das vor 10 Tagen übernommen. Offentypescript
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
braintrustdata/braintrust-sdk-javascript#2577 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in braintrustdata/braintrust-sdk-javascript
Ähnliche Issues
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
cloudscape-design/components#5184 ·
Maintainer antworten meist innerhalb von 2 Tagen
-
enhancement
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
JarX-Concepts/react-native-platform-components#130 ·
Maintainer antworten meist innerhalb von 1 Tag
-
fix(api): optimize-for-web /preview outer catches miss asDecoderOutOfMemory on V8 OOM and SIGKILLOffenarea: backend bug priority: low
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 83/100
snapotter-hq/SnapOtter#3773 ·
Maintainer antworten meist innerhalb von 1 Tag
-
ai-driven-qa ux-audit
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
linagora/twake-contacts-frontend#386 ·
Maintainer antworten meist innerhalb von 1 Tag
-
git: README should state plainly that without --repository every reachable repository is in scopeOffendocumentation server-git v2
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 84/100
modelcontextprotocol/servers#5225 ·
Maintainer antworten meist innerhalb von 1 Tag