fix(rustproxy-http,rustproxy-metrics): reduce per-frame metrics overhead by batching body byte accounting

This commit is contained in:
2026-03-17 12:22:51 +00:00
parent 8f6bb30367
commit 92d7113c6c
4 changed files with 92 additions and 49 deletions

View File

@@ -1,5 +1,11 @@
# Changelog
## 2026-03-17 - 25.11.23 - fix(rustproxy-http,rustproxy-metrics)
reduce per-frame metrics overhead by batching body byte accounting
- Buffer HTTP body byte counts and flush them every 64 KB, at end of stream, and on drop to keep totals accurate while preserving throughput sampling.
- Skip zero-value counter updates in metrics collection to avoid unnecessary atomic and DashMap operations for the unused direction.
## 2026-03-17 - 25.11.22 - fix(rustproxy-http)
reuse healthy HTTP/2 upstream connections after requests with bodies