getsentry / getsentry/sentry-python

Set `gen_ai.response.streaming = false` for non-streaming calls

オープン
#5,823 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
Improvement Python Spans
主要言語
Python
スター
2.2k
フォーク
669
平均マージ
1日 1時間
マージ済み PR(30日)
213

説明

## Problem

Streaming calls explicitly set `GEN_AI_RESPONSE_STREAMING = True`, but non-streaming calls don't set it at all. Setting it explicitly to `False` would make it easier to filter and query spans by streaming vs non-streaming.

## Files

* `sentry_sdk/integrations/google_genai/__init__.py` — `_wrap_generate_content()`, `_wrap_async_generate_content()`

## Acceptance Criteria

* Non-streaming `generate_content` spans have `gen_ai.response.streaming = false`
* Test updated to verify the attribute value

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。