[bot] Cerebras Cloud TypeScript SDK (`@cerebras/cerebras_cloud_sdk`) not instrumented — no tracing for fast-inference chat completions or embeddings (116,524 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
- 68/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Aktiv
- Tech-Stack
- node.js, typescript
- Bereich
- observability
Rechercherichtung
Lies zunächst die vorhandenen Konfigurationen in js/src/auto-instrumentations/configs/, insbesondere openai.ts, groq.ts und mistral.ts, und untersuche anschließend js/src/wrappers/ und js/src/instrumentation/plugins/ auf die entsprechenden Muster. Ergänze die Abdeckung für Cerebras chat completions, streaming, completions und embeddings, mit einer Auto-Instrumentation-Konfiguration und einem E2E-Szenario in e2e/scenarios/; als abgeschlossen gilt die Arbeit, wenn direkte Aufrufe von @cerebras/cerebras_cloud_sdk Braintrust-Spans erzeugen.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
Cerebras publishes an official TypeScript SDK for their ultra-fast LLM inference API: @cerebras/cerebras_cloud_sdk on npm (v1.64.1, actively maintained). It provides execution APIs for chat completions, completions, embeddings, and streaming responses. The SDK has its own HTTP client based on node-fetch — it does not depend on the openai npm package. This repository has zero instrumentation for any Cerebras SDK surface — no wrapper, no channels, no plugin, no auto-instrumentation config. Users who call @cerebras/cerebras_cloud_sdk directly get no Braintrust spans.
What instrumentation is missing
The @cerebras/cerebras_cloud_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 use, structured outputs, and reasoning |
client.chat.completions.create({ ..., stream: true }) |
Streaming chat completions |
client.completions.create({ model, prompt }) |
Raw text completions |
client.embeddings.create(...) |
Text embeddings |
Cerebras is notable for extremely low-latency LLM inference (their wafer-scale hardware delivers tokens significantly faster than GPU-based providers), making observability especially valuable for latency-sensitive production workloads.
No coverage in any instrumentation layer:
- No wrapper function (e.g.
wrapCerebras()) - No diagnostics channels for Cerebras 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
cerebras(case-insensitive) acrossjs/src/returns zero matches
Indirect coverage is insufficient:
Braintrust's Cerebras integration page documents a gateway/OpenAI SDK approach only — using the openai npm client pointed at the Braintrust gateway to route to Cerebras models. Users who call @cerebras/cerebras_cloud_sdk directly get no spans at all. The Cerebras SDK has its own separate HTTP layer (runtime deps: node-fetch, abort-controller, agentkeepalive, form-data-encoder, formdata-node) and is not patched by the existing openai auto-instrumentation.
Braintrust docs status
not_found for direct SDK instrumentation. The Braintrust Cerebras integration page documents a gateway/OpenAI SDK approach only and does not reference @cerebras/cerebras_cloud_sdk.
Upstream references
@cerebras/cerebras_cloud_sdknpm: https://www.npmjs.com/package/@cerebras/cerebras_cloud_sdk- Cerebras Cloud SDK Node.js GitHub: https://github.com/Cerebras/cerebras-cloud-sdk-node
- Cerebras inference quickstart: https://inference-docs.cerebras.ai/quickstart
- Cerebras API reference: https://inference-docs.cerebras.ai/api-reference/chat-completions
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 Cerebras config presentjs/src/wrappers/— nocerebras.tswrapper filejs/src/instrumentation/plugins/— no Cerebras channels or plugine2e/scenarios/— no Cerebras test scenarios- Full repo grep for
cerebras(case-insensitive) injs/src/— zero matches - Cerebras SDK
package.json(GitHub) — confirmed runtime deps arenode-fetch/agentkeepalive/form-data-encoder; noopenaidependency
Weekly downloads: 116,524 (as of 2026-10-14; window 2026-10-06 to 2026-10-12; source https://api.npmjs.org/downloads/point/last-week/@cerebras/cerebras_cloud_sdk)
- Vorherrschende Sprache
- TypeScript
- Sterne
- 29
- Forks
- 21
- Ø Merge
- 1 T. 13 Std.
- Gemergte PRs (30 T.)
- 67
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
-
Pi Coding Agent instrumentation double-counts tokens and estimated cost in trace rollups (AgentSession.prompt carries summed LLM usage)Evtl. vergeben @sharonadhitya hat das vor 1 Tag übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
braintrustdata/braintrust-sdk-javascript#2659 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
pi-coding-agent: Pi 1.4 system messages dropped, so LLM spans have no system prompt or toolsEvtl. vergeben Ein verknüpfter Pull Request ist offen oder bereits gemergt. Offen
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 45/100
braintrustdata/braintrust-sdk-javascript#2662 ·
Maintainer antworten meist innerhalb von 1 Tag
-
AI SDK tool spans don't respect `toModelOutput`Evtl. vergeben @AbhiPrasad hat das vor 3 Tagen übernommen. Offentypescript
braintrustdata/braintrust-sdk-javascript#2651 · 1 Kommentar · 1 zugewiesene Person ·
Maintainer antworten meist innerhalb von 1 Tag
-
High TypeScript checking cost from generated Zod 3 schemasEvtl. vergeben @lforst hat das vor 10 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 10 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
Alle Issues in braintrustdata/braintrust-sdk-javascript
Ähnliche Issues
-
[good first issue, hacktoberfest] 🏯 Hacktoberfest Task - Add new Japan Fact 898 (good-first-issue)Offencommunity first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
lingdojo/kana-dojo#33145 · 1 Kommentar · 5 Reaktionen ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
code-yeongyu/senpi#4278 ·
Maintainer antworten meist innerhalb von 1 Tag
-
[Bug] Activity | The activity list ignores taskIds and returns the activities of every taskEvtl. vergeben @NdekoCode hat das heute übernommen. Offen
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
ever-co/ever-gauzy#11469 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 78/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 75/100
griffinwork40/agent-afk#4408 ·
Maintainer antworten meist innerhalb von 1 Tag