getsentry / getsentry/sentry-python

Instrument `generate_videos`

Open
#5,827 1 comment 0 reactions 0 assignees View on GitHub
Improvement Python Spans
Dominant language
Python
Stars
2.2k
Forks
669
Avg merge
1d 1h
Merged PRs (30d)
213

Description

## Problem

`Models.generate_videos` (and async variant) is not instrumented. Video generation returns a `GenerateVideosOperation` (long-running operation) and supports text-to-video, image-to-video, frame interpolation, and video extension.

Growing in usage with Veo models.

## Files

* `sentry_sdk/integrations/google_genai/__init__.py` — `setup_once()` needs additional patches

## Acceptance Criteria

* `generate_videos` calls produce spans
* Async variant is also instrumented
* Model name and prompt are captured (prompt respects PII settings)
* Tests verify span creation

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.