fix(ai): truncate long message histories #4885
Closed
Codecov / codecov/project
succeeded
Oct 15, 2025 in 1s
66.72% (-18.06%) compared to 55e903e
View this Pull Request on Codecov
66.72% (-18.06%) compared to 55e903e
Details
Codecov Report
❌ Patch coverage is 41.73913% with 67 lines in your changes missing coverage. Please review.
✅ Project coverage is 66.72%. Comparing base (55e903e) to head (a220aa9).
✅ All tests successful. No failed tests found.
❗ There is a different number of reports uploaded between BASE (55e903e) and HEAD (a220aa9). Click for more details.
Additional details and impacted files
@@ Coverage Diff @@
## master #4885 +/- ##
===========================================
- Coverage 84.78% 66.72% -18.06%
===========================================
Files 160 165 +5
Lines 16774 17104 +330
Branches 2920 3012 +92
===========================================
- Hits 14221 11413 -2808
- Misses 1695 5046 +3351
+ Partials 858 645 -213 | Files with missing lines | Coverage Δ | |
|---|---|---|
| sentry_sdk/integrations/openai.py | 5.85% <66.66%> (-78.75%) |
⬇️ |
| sentry_sdk/scope.py | 87.94% <50.00%> (-0.62%) |
⬇️ |
| sentry_sdk/integrations/anthropic.py | 8.57% <0.00%> (-75.01%) |
⬇️ |
| ...k/integrations/openai_agents/spans/invoke_agent.py | 0.00% <0.00%> (-87.88%) |
⬇️ |
| sentry_sdk/integrations/openai_agents/utils.py | 0.00% <0.00%> (-88.10%) |
⬇️ |
| sentry_sdk/integrations/litellm.py | 0.00% <0.00%> (-77.15%) |
⬇️ |
| sentry_sdk/client.py | 82.45% <11.11%> (-1.71%) |
⬇️ |
| sentry_sdk/integrations/langgraph.py | 6.25% <11.11%> (-71.17%) |
⬇️ |
| sentry_sdk/ai/utils.py | 57.54% <75.00%> (-30.46%) |
⬇️ |
| sentry_sdk/integrations/langchain.py | 3.71% <0.00%> (-65.34%) |
⬇️ |
Loading