Visitar URL original
feat(bedrock): Set `gen_ai.response.finish_reasons` for non-streaming responses by alexander-alderman-webb · Pull Request #8250 · getsentry/sentry-python · GitHub
Skip to content

feat(bedrock): Set gen_ai.response.finish_reasons for non-streaming responses - #8250

Merged
alexander-alderman-webb merged 4 commits into
masterfrom
webb/bedrock/nonstreaming-finish-reasons
Nov 12, 2026
Merged

alexander-alderman-webb merged 4 commits into
masterfrom
webb/bedrock/nonstreaming-finish-reasons

Conversation

@alexander-alderman-webb

Copy link
Copy Markdown
Collaborator

Set attribute based on stopReason in response["usage"] returned from the Bedrock API.

@alexander-alderman-webb
alexander-alderman-webb force-pushed the webb/bedrock/nonstreaming-finish-reasons branch from 0edf177 to 444f537 Compare November 11, 2026 16:54
@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 139166 passed | ⏭️ 7813 skipped | Total: 146979 | Pass Rate: 94.68% | Execution Time: 457m 10s

📊 Comparison with Base Branch

Metric Change
Total Tests —
Passed Tests —
Failed Tests —
Skipped Tests —

✨ Test counts unchanged from base.

All tests are passing successfully.

✅ Patch coverage is 100.00% (2 of 2 changed executable lines covered; target 80%).
Project statement coverage is 90.21%.

Changed files with executable lines (1)
File Patch coverage Changed executable lines
sentry_sdk/integrations/boto3/_services/bedrock.py 100.00% 2/2 covered

Generated by Coverage Action

@alexander-alderman-webb
alexander-alderman-webb marked this pull request as ready for review November 12, 2026 08:10
@alexander-alderman-webb
alexander-alderman-webb requested a review from a team as a code owner November 12, 2026 08:10
Base automatically changed from webb/bedrock/nonstreaming-output-messages to master November 12, 2026 09:14
@alexander-alderman-webb alexander-alderman-webb changed the title feat(bedrock): Record gen_ai.response.finish_reasons for non-streaming responses feat(bedrock): Set gen_ai.response.finish_reasons for non-streaming responses Nov 12, 2026
@alexander-alderman-webb
alexander-alderman-webb merged commit 42f925e into master Nov 12, 2026
173 checks passed
@alexander-alderman-webb
alexander-alderman-webb deleted the webb/bedrock/nonstreaming-finish-reasons branch November 12, 2026 09:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants