getsentry / getsentry/sentry-python

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

Đang mở
#5,823 1 bình luận 0 reaction 0 người được giao Xem trên GitHub
Improvement Python Spans
Ngôn ngữ chính
Python
Star
2.2k
Fork
669
Merge trung bình
1 ngày 1 giờ
Pull request đã merge (30 ngày)
213

Mô tả

## 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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.