fix(anthropic): Capture exceptions for stream() calls#5950
Merged
alexander-alderman-webb merged 14 commits intomasterfrom Apr 9, 2026
Merged
fix(anthropic): Capture exceptions for stream() calls#5950alexander-alderman-webb merged 14 commits intomasterfrom
stream() calls#5950alexander-alderman-webb merged 14 commits intomasterfrom
Conversation
…opic/remove-get-current-span
…opic/remove-get-current-span
Contributor
Semver Impact of This PR🟢 Patch (bug fixes) 📋 Changelog PreviewThis is how your changes will appear in the changelog. New Features ✨
Bug Fixes 🐛Anthropic
Other
Internal Changes 🔧
🤖 This preview updates automatically when you update the PR. |
Contributor
Codecov Results 📊✅ 7 passed | Total: 7 | Pass Rate: 100% | Execution Time: 1.78s 📊 Comparison with Base Branch
All tests are passing successfully. ❌ Patch coverage is 0.00%. Project has 15837 uncovered lines. Files with missing lines (1)
Coverage diff@@ Coverage Diff @@
## main #PR +/-##
==========================================
+ Coverage 22.29% 25.23% +2.94%
==========================================
Files 190 191 +1
Lines 20931 21182 +251
Branches 7698 6960 -738
==========================================
+ Hits 4666 5345 +679
- Misses 16265 15837 -428
- Partials 382 456 +74Generated by Codecov Action |
…opic/remove-set-span-errored
…opic/exceptions-on-stream
stream() calls
sl0thentr0py
approved these changes
Apr 7, 2026
Base automatically changed from
webb/anthropic/remove-set-span-errored
to
master
April 9, 2026 07:59
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Wrap the library function in a try-except and capture the exception if one is raised.
Issues
Reminders
tox -e linters.feat:,fix:,ref:,meta:)