getsentry / getsentry/sentry-python

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

未關閉
#5,823 1 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
Improvement Python Spans
主要語言
Python
星號
2.2k
分支
669
平均合併
1 天 40 分鐘
30 天內合併 PR
212

描述

## 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 摘要。