Skip to content

fix(middleware): track actual response size#127

Merged
georgidhristov merged 1 commit into
mainfrom
fix/accurate-response-size
Jun 21, 2026
Merged

fix(middleware): track actual response size#127
georgidhristov merged 1 commit into
mainfrom
fix/accurate-response-size

Conversation

@georgidhristov

Copy link
Copy Markdown
Collaborator

Closes #115

Summary

Fixes incorrect ResponseSize reporting when response body capture is truncated or skipped.

Changes

  • Track the actual number of bytes written to the response stream.

Result

Response size reporting is now more accurate and reflects the actual payload sent to the client. This improves dashboard reliability and avoids misleading size values when large responses are truncated during capture.

@georgidhristov georgidhristov merged commit 1db7a04 into main Jun 21, 2026
1 check passed
@georgidhristov georgidhristov deleted the fix/accurate-response-size branch June 21, 2026 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Fix ResponseSize to Represent Actual Response Bytes

1 participant