Skip to content

fix: improve error handling for AMD GPU metrics

bb6995c
Select commit
Loading
Failed to load commit list.
Open

feat: add FastAPI middleware for per-request emissions tracking #1203

fix: improve error handling for AMD GPU metrics
bb6995c
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded May 20, 2026 in 1s

89.17% (+0.28%) compared to d2ce064

View this Pull Request on Codecov

89.17% (+0.28%) compared to d2ce064

Details

Codecov Report

❌ Patch coverage is 94.68599% with 11 lines in your changes missing coverage. Please review.
✅ Project coverage is 89.17%. Comparing base (d2ce064) to head (bb6995c).

Files with missing lines Patch % Lines
codecarbon/integrations/fastapi/middleware.py 91.89% 9 Missing ⚠️
codecarbon/integrations/fastapi/_routing.py 95.00% 2 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1203      +/-   ##
==========================================
+ Coverage   88.88%   89.17%   +0.28%     
==========================================
  Files          45       50       +5     
  Lines        4302     4509     +207     
==========================================
+ Hits         3824     4021     +197     
- Misses        478      488      +10     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.