Skip to content

feat(bedrock): Record gen_ai.response.finish_reasons for streamed responses - #8252

Draft
alexander-alderman-webb wants to merge 5 commits into
webb/bedrock/streaming-output-messagesfrom
webb/bedrock/streaming-finish-reasons
Draft

alexander-alderman-webb wants to merge 5 commits into
webb/bedrock/streaming-output-messagesfrom
webb/bedrock/streaming-finish-reasons

Conversation

@alexander-alderman-webb

@alexander-alderman-webb alexander-alderman-webb commented Nov 11, 2026 •

Copy link
Copy Markdown
Collaborator

Set attribute based on stopReason in the messageStop event returned from the Bedrock API.

@github-actions

github-actions Bot commented Nov 11, 2026 •

Copy link
Copy Markdown
Contributor

Coverage Results 📊

✅ 139222 passed | ⏭️ 7861 skipped | Total: 147083 | Pass Rate: 94.66% | Execution Time: 436m 26s

📊 Comparison with Base Branch

Metric Change
Total Tests 📈 +208
Passed Tests 📈 +112
Failed Tests —
Skipped Tests 📈 +96

All tests are passing successfully.

✅ Patch coverage is 100.00% (3 of 3 changed executable lines covered; target 80%).
Project statement coverage is 90.22% (down 0.02 percentage points from base (e72921f) to head (80267a2)).

Changed files with executable lines (1)
File Patch coverage Changed executable lines
sentry_sdk/integrations/boto3/_services/bedrock.py 100.00% 3/3 covered
Coverage diff
@@            Coverage Diff             @@
##        master     #8252       +/-##
==========================================
- Coverage    90.24%    90.22%    -0.02%
==========================================
  Files          203       203         —
  Tracked lines     27125     27321      +196
  Branches     10142     10242      +100
==========================================
+ Hits         24478     24649      +171
- Misses        2647      2672       +25
- Partials      1541      1557       +16

Generated by Coverage Action

@alexander-alderman-webb
alexander-alderman-webb force-pushed the webb/bedrock/streaming-output-messages branch 2 times, most recently from 6a90c1d to e72921f Compare November 11, 2026 19:59
@alexander-alderman-webb
alexander-alderman-webb force-pushed the webb/bedrock/streaming-finish-reasons branch from 531c13d to aaa51a2 Compare November 11, 2026 20:14
@alexander-alderman-webb
alexander-alderman-webb force-pushed the webb/bedrock/streaming-finish-reasons branch from aaa51a2 to 0de285e Compare November 11, 2026 20:15

This branch has not been deployed

No deployments
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.

1 participant