fix(ai): introduce message truncation for openai #4946
Merged
Codecov / codecov/project
succeeded
Oct 16, 2025 in 0s
84.11% (+0.01%) compared to 4325802
View this Pull Request on Codecov
84.11% (+0.01%) compared to 4325802
Details
Codecov Report
❌ Patch coverage is 92.85714% with 3 lines in your changes missing coverage. Please review.
✅ Project coverage is 84.11%. Comparing base (4325802) to head (cf9d809).
✅ All tests successful. No failed tests found.
| Files with missing lines | Patch % | Lines |
|---|---|---|
| sentry_sdk/client.py | 75.00% | 0 Missing and 2 partials |
| sentry_sdk/integrations/openai.py | 80.00% | 0 Missing and 1 partial |
Additional details and impacted files
@@ Coverage Diff @@
## master #4946 +/- ##
==========================================
+ Coverage 84.09% 84.11% +0.01%
==========================================
Files 165 165
Lines 16998 17037 +39
Branches 2980 2991 +11
==========================================
+ Hits 14294 14330 +36
Misses 1815 1815
- Partials 889 892 +3 | Files with missing lines | Coverage Δ | |
|---|---|---|
| sentry_sdk/ai/utils.py | 92.00% <100.00%> (+4.00%) |
⬆️ |
| sentry_sdk/scope.py | 88.61% <100.00%> (+0.06%) |
⬆️ |
| sentry_sdk/integrations/openai.py | 84.84% <80.00%> (-0.18%) |
⬇️ |
| sentry_sdk/client.py | 84.22% <75.00%> (-0.15%) |
⬇️ |
Loading