Skip to content

feat(fastapi): measurement capability tiers for per-request energy - #1381

Open
davidberenstein1957 wants to merge 2 commits into
feat/add-fastapi-middlewarefrom
feat/fastapi-measurement-tiers
Open

feat(fastapi): measurement capability tiers for per-request energy#1381
davidberenstein1957 wants to merge 2 commits into
feat/add-fastapi-middlewarefrom
feat/fastapi-measurement-tiers

style: apply isort and black to the FastAPI tier tests

c94fe6c
Select commit
Loading
Failed to load commit list.
Codecov / codecov/project succeeded Aug 13, 2026 in 1s

92.08% (+0.02%) compared to 5680063

View this Pull Request on Codecov

92.08% (+0.02%) compared to 5680063

Details

Codecov Report

❌ Patch coverage is 93.25843% with 12 lines in your changes missing coverage. Please review.
✅ Project coverage is 92.08%. Comparing base (5680063) to head (c94fe6c).

Files with missing lines Patch % Lines
codecarbon/integrations/fastapi/tiers.py 93.33% 6 Missing ⚠️
codecarbon/integrations/fastapi/middleware.py 93.75% 5 Missing ⚠️
codecarbon/emissions_tracker.py 85.71% 1 Missing ⚠️
Additional details and impacted files
@@                       Coverage Diff                       @@
##           feat/add-fastapi-middleware    #1381      +/-   ##
===============================================================
+ Coverage                        92.06%   92.08%   +0.02%     
===============================================================
  Files                               53       54       +1     
  Lines                             5530     5700     +170     
===============================================================
+ Hits                              5091     5249     +158     
- Misses                             439      451      +12     

☔ View full report in Codecov by Harness.
📢 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.