Set `gen_ai.response.streaming = false` for non-streaming calls
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 72/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Quiet
- Tech stack
- python
- Domain
- observability
Research direction
Start in sentry_sdk/integrations/google_genai/init.py at _wrap_generate_content() and _wrap_async_generate_content(), then review the existing test for Google GenAI generate_content spans. Update the non-streaming path so its span attribute is explicitly false, and verify the test checks that value.
Written by the indexing model from the issue text.
Description
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_contentspans havegen_ai.response.streaming = false - Test updated to verify the attribute value
- Dominant language
- Python
- Stars
- 2.2k
- Forks
- 672
- Avg merge
- 1d 13m
- Merged PRs (30d)
- 212
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from getsentry/sentry-python
-
Waiting for: Product Owner
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
getsentry/sentry-python#7543 · 1 comment ·
-
Python
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
getsentry/sentry-python#6992 · 1 comment ·
-
Improvement Python
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
getsentry/sentry-python#6970 · 1 comment ·
-
Bug Python
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
getsentry/sentry-python#6504 · 1 comment ·
-
Improvement Python Spans
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
getsentry/sentry-python#5833 · 1 comment ·
All issues in getsentry/sentry-python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100