Skip to content

test: Update token usage assertions to support newer langchain versions

b1d8fc0
Select commit
Loading
Failed to load commit list.
Merged

fix(integrations): ensure that GEN_AI_AGENT_NAME is properly set for GEN_AI spans under an invoke_agent span #5030

test: Update token usage assertions to support newer langchain versions
b1d8fc0
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Nov 18, 2025 in 0s

30.49% (-53.52%) compared to 66be3d2

View this Pull Request on Codecov

30.49% (-53.52%) compared to 66be3d2

Details

Codecov Report

❌ Patch coverage is 2.50000% with 78 lines in your changes missing coverage. Please review.
✅ Project coverage is 30.49%. Comparing base (66be3d2) to head (b1d8fc0).
⚠️ Report is 1 commits behind head on master.
✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
sentry_sdk/integrations/langchain.py 2.50% 78 Missing ⚠️

❗ There is a different number of reports uploaded between BASE (66be3d2) and HEAD (b1d8fc0). Click for more details.

HEAD has 102 uploads less than BASE
Flag BASE (66be3d2) HEAD (b1d8fc0)
107 5
Additional details and impacted files
@@             Coverage Diff             @@
##           master    #5030       +/-   ##
===========================================
- Coverage   84.00%   30.49%   -53.52%     
===========================================
  Files         180      180               
  Lines       18030    18077       +47     
  Branches     3209     3215        +6     
===========================================
- Hits        15147     5512     -9635     
- Misses       1906    12027    +10121     
+ Partials      977      538      -439     
Files with missing lines Coverage Δ
sentry_sdk/integrations/langchain.py 3.91% <2.50%> (-64.58%) ⬇️

... and 158 files with indirect coverage changes