[bot] Google GenAI Live API not instrumented — zero visibility for real-time multimodal sessions
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Anfängerfreundlichkeit
- 45/100
- Issue-Typ
- Feature
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Ruhig
- Tech-Stack
- typescript
- Bereich
- ai, observability
Rechercherichtung
Beginne damit, js/src/wrappers/google-genai.ts, js/src/auto-instrumentations/configs/google-genai.ts, js/src/instrumentation/plugins/google-genai-channels.ts und js/src/instrumentation/plugins/google-genai-plugin.ts zu lesen, um die bestehende Instrumentierung der Modelle zu vergleichen. Untersuche anschließend js/src/vendor-sdk-types/google-genai.ts und das Verzeichnis e2e/scenarios/google-genai-instrumentation/. Als abgeschlossen gilt die Arbeit, wenn die Live API-Oberflächen Instrumentierungsabdeckung und End-to-End-Szenarien für Sitzungsaktivität, Antworten, Nutzungsmetadaten und Tool-Aufrufe haben.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
Summary
The @google/genai SDK provides a GA Live API (client.live.connect()) for low-latency, real-time bidirectional audio, video, and text interaction with Gemini models. This repo has zero instrumentation for any Live API surface — no channels, no plugin handlers, no wrapper proxies, and no auto-instrumentation configs. Users building real-time voice or multimodal AI applications with the Google GenAI Live API get no Braintrust spans.
What instrumentation is missing
No coverage in any layer:
- Wrapper (
js/src/wrappers/google-genai.ts): Only interceptsinstance.models(line 74–76). No proxy for theliveresource. - Auto-instrumentation config (
js/src/auto-instrumentations/configs/google-genai.ts): Only defines configs forgenerateContentInternalandgenerateContentStreamInternal. No config for Live API methods. - Channels (
js/src/instrumentation/plugins/google-genai-channels.ts): Only two channels defined (generateContent,generateContentStream). No Live API channels. - Plugin (
js/src/instrumentation/plugins/google-genai-plugin.ts): No handler for Live API calls. - Vendor types (
js/src/vendor-sdk-types/google-genai.ts):GoogleGenAIClientonly declaresmodelsproperty. Noliveproperty.
A grep for live.connect, sendRealtimeInput, and sendClientContent across js/src/ returns zero matches.
Key upstream API surfaces with no Braintrust tracing:
| SDK Method | Description |
|---|---|
client.live.connect({ model, config }) |
Creates a WebSocket session for real-time interaction. Config includes system instructions, tools, voice, response modalities, and speech config. |
session.sendClientContent() |
Sends text content in the session. |
session.sendRealtimeInput() |
Sends real-time audio/video data. |
session.sendToolResponse() |
Sends tool call results back to the model. |
The Live API session emits server events including model responses with usage metadata and tool call requests. These contain the same kind of data (content, token counts, tool calls) that is already captured for models.generateContent() in this repo.
Braintrust docs status
not_found — The Braintrust Gemini integration page at https://www.braintrust.dev/docs/integrations/ai-providers/gemini documents generateContent and generateContentStream as supported methods. The Live API is not mentioned.
Upstream reference
- Google GenAI Live API docs: https://ai.google.dev/gemini-api/docs/live
- SDK method:
client.live.connect({ model, config })— returns a WebSocket session - Capabilities: real-time audio/video/text interaction, tool calling, 70+ language support, interruption handling
- Session config:
systemInstruction,tools,responseModalities,speechConfig,realtimeInputConfig - This is a production API documented on the official Google AI for Developers site.
- The
@google/genaiSDK (latest v1.48.0+) provides full TypeScript support for the Live API.
Precedent
- This is the Google equivalent of the OpenAI Realtime API gap.
- Both represent a new category of AI API (WebSocket-based real-time sessions) that the current instrumentation architecture does not cover.
Local files inspected
js/src/wrappers/google-genai.ts— only wrapsmodelspropertyjs/src/auto-instrumentations/configs/google-genai.ts— no Live configsjs/src/instrumentation/plugins/google-genai-channels.ts— no Live channelsjs/src/instrumentation/plugins/google-genai-plugin.ts— no Live handlersjs/src/vendor-sdk-types/google-genai.ts— noliveproperty on client typee2e/scenarios/google-genai-instrumentation/— no Live test scenarios
- Vorherrschende Sprache
- TypeScript
- Sterne
- 29
- Forks
- 16
- Ø Merge
- 1 T. 15 Std.
- Gemergte PRs (30 T.)
- 69
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
-
High TypeScript checking cost from generated Zod 3 schemasEvtl. vergeben @lforst hat das vor 1 Tag ü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 1 Tag ü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 4 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
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 55/100
braintrustdata/braintrust-sdk-javascript#2527 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 65/100
braintrustdata/braintrust-sdk-javascript#2526 ·
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in braintrustdata/braintrust-sdk-javascript
Ähnliche Issues
-
bug engine
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 86/100
frostney/GocciaScript#1746 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
agilepathway/label-checker#739 · 4 Kommentare ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 68/100
CopilotKit/OpenBot#800 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Endpoint links in the tag operations list are below the 24px target sizeEvtl. vergeben @AdzerKI hat das heute übernommen. Offen
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 79/100
ehmpathy/rhachet-roles-bhuild#471 ·
Maintainer antworten meist innerhalb von 1 Tag