[bot] OpenAI Videos API (`videos.create()` / Sora) not instrumented
Mantenedores costumam responder em até 1 dia
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 58/100
- Tipo de issue
- Funcionalidade
- Clareza
- Razoavelmente clara
- Status de atividade
- Ativa
- Stack de tecnologia
- node.js, typescript
- Domínio
- observability-sre
Direção de pesquisa
Comece comparando js/src/wrappers/oai.ts, js/src/auto-instrumentations/configs/openai.ts, js/src/instrumentation/plugins/openai-channels.ts, js/src/instrumentation/plugins/openai-plugin.ts e js/src/vendor-sdk-types/openai.ts com a instrumentação existente de providers. Decida como o ciclo de vida de create, polling e download deve ser representado e, em seguida, adicione cobertura em e2e/scenarios/openai-instrumentation/. Está concluído quando videos.create estiver instrumentado com o ciclo de vida acordado e o cenário e2e verificar os spans resultantes.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
Summary
The OpenAI Node SDK (openai npm package, >=6.2.0) exposes a GA client.videos.create() API for text-to-video and image-to-video generation using the Sora 2 / Sora 2 Pro models. This is a distinct generative execution surface — separate from chat completions, the Responses API, and images.generate() — and is completely uninstrumented in this repo. Users generating video with Sora through the JS SDK get no Braintrust spans.
This repo already treats the analogous gaps for other providers/modalities as in-scope and trackable:
- OpenAI
images.generate()/images.edit()— open gap braintrustdata/braintrust-sdk-javascript#1628 - Google GenAI
models.generateVideos()(Veo) — open gaps braintrustdata/braintrust-sdk-javascript#2030 / braintrustdata/braintrust-sdk-javascript#2176
The OpenAI videos.* resource is the same category of gap (a dedicated generative media API, distinct from the text/chat path) but for OpenAI specifically, and it is not covered by any of those issues or any other open issue in this repo.
What instrumentation is missing
- Wrapper (
js/src/wrappers/oai.ts): No proxy for thevideosresource. Onlychat.completions,embeddings,moderations, andresponsesare wrapped (confirmed by reading the file — novideoreferences at all). - Auto-instrumentation config (
js/src/auto-instrumentations/configs/openai.ts): No config entry forvideos.create(orvideos.remix/videos.retrieve). The file only instrumentschat.completions.create,embeddings.create,chat.completions.parse,moderations.create,chat.completions.stream, and theresponses.*family. - Channels (
js/src/instrumentation/plugins/openai-channels.ts): No channel definitions for video generation (confirmed — novideoreferences). - Plugin (
js/src/instrumentation/plugins/openai-plugin.ts): No handler for video generation calls. - Vendor types (
js/src/vendor-sdk-types/openai.ts): NoVideos/VideoCreateParamstypes. - e2e: No test scenario under
e2e/scenarios/openai-instrumentation/exercises video generation.
Upstream reference
- OpenAI Videos API reference: https://developers.openai.com/api/reference/resources/videos/methods/create
- Video generation guide: https://developers.openai.com/api/docs/guides/video-generation
client.videos.create({ model, prompt, size, seconds, input_reference })—modelacceptssora-2/sora-2-pro; returns a video job object (object: "video", withid,status,created_at,model) that is polled viavideos.retrieve(id)until the render completes, then downloaded viavideos.downloadContent(id).- This is a stable, GA, production API available in
openaiNode SDK>=6.2.0— well within this repo's already-supportedopenaiversion range (>=4.0.0, and the repo's own dev-pin is[email protected], which already includes this resource). - Similar to
models.generateVideos()in Google GenAI, this uses a long-running-operation/polling pattern rather than a single synchronous response — instrumentation will likely need to decide whether to span just the initialcreate()call or track the full poll-to-completion lifecycle (the existing google-genai-generate-videos issues note the same design question).
Braintrust docs status
not_found — Fetched https://www.braintrust.dev/docs/integrations/ai-providers/openai directly: it documents chat completions, embeddings (via gateway), audio transcriptions, images, structured outputs, and function calling as traced via wrapOpenAI, but does not mention videos.create, Sora, or any video generation capability anywhere.
Local repo files inspected
js/src/wrappers/oai.ts— novideoreferencesjs/src/auto-instrumentations/configs/openai.ts— full method list confirmed (chat completions, embeddings, parse, moderations, stream, responses create/stream/parse/compact); no videos entryjs/src/instrumentation/plugins/openai-channels.ts— novideoreferencesjs/src/vendor-sdk-types/openai.ts— novideo/Videoreferencese2e/scenarios/openai-instrumentation/— no video generation scenario- Full repo grep for
video/Videounderjs/src/— only unrelated matches inattachment-utils.ts,google-genai.tsvendor types, andstrands-agent-sdkfiles; none reference OpenAI's videos resource
- Linguagem predominante
- TypeScript
- Estrelas
- 29
- Forks
- 21
- Merge médio
- 1d 15h
- PRs com merge (30d)
- 76
Preparar o ambiente
- Inclui um Dockerfile ou arquivo Docker Compose
- Sem modelo de pull request
- Sem guia de contribuição
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de braintrustdata/braintrust-sdk-javascript
-
typescript
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 45/100
braintrustdata/braintrust-sdk-javascript#2686 ·
Mantenedores costumam responder em até 1 dia
-
typescript
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 45/100
braintrustdata/braintrust-sdk-javascript#2685 ·
Mantenedores costumam responder em até 1 dia
-
[bot] Cloudflare Workers AI `queueRequest` (batch) inference is explicitly excluded from tracingAbertacloudflare typescript
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 30/100
braintrustdata/braintrust-sdk-javascript#2684 ·
Mantenedores costumam responder em até 1 dia
-
High TypeScript checking cost from generated Zod 3 schemasTalvez já em andamento @lforst assumiu há 15 dias. Aberta
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 22/100
braintrustdata/braintrust-sdk-javascript#2624 · 1 comentário · 1 responsável ·
Mantenedores costumam responder em até 1 dia
-
[bot] Instrument Luma AI (17,324 weekly downloads)Talvez livre de novo Um pull request para esta issue foi fechado sem ser mesclado. Abertatypescript
Dificuldade 4/5 3-5 dias Facilidade para iniciantes 55/100
braintrustdata/braintrust-sdk-javascript#2578 ·
Mantenedores costumam responder em até 1 dia
Todas as issues de braintrustdata/braintrust-sdk-javascript
Issues semelhantes
-
bug ready-for-agent
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
PhyberApex/kuroshiro#1687 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 73/100
microsoft/monaco-editor#5563 ·
Mantenedores costumam responder em até 1 dia
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 78/100
Mantenedores costumam responder em até 1 dia
-
bug
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 86/100
awslabs/visual-asset-management-system#937 ·
Mantenedores costumam responder em até 1 dia
-
enhancement
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100