Skip to content

[bot] Instrument @google/genai models.generateVideos() #2030

@braintrust-bot

Description

@braintrust-bot

Gap

models.generateVideos() in @google/genai is not instrumented. The method generates videos from a text description (Veo model) and is exposed as a public generative execution API on the Models class.

Evidence

  • SDK source: src/models.ts in googleapis/js-genai exposes generateVideos() as a public method on the Models class.
  • Current instrumentation: js/src/instrumentation/plugins/google-genai-channels.ts and google-genai-plugin.ts only cover models.generateContent, models.generateContentStream, and models.embedContent.
  • Vendor types: js/src/vendor-sdk-types/google-genai.tsGoogleGenAIModels interface does not include generateVideos.
  • Auto-instrumentation config: js/src/auto-instrumentations/configs/google-genai.ts has no entry for video generation.

Notes

generateVideos uses a long-running operation (polling) pattern — it returns an operation object that is polled until complete. Instrumentation may need to wrap the full polling lifecycle to capture accurate latency and output, similar to how streaming completions are aggregated. This complexity may warrant a deferred or best-effort approach (e.g., wrapping the initial call and recording when the operation resolves).

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions