Skip to content

Log response size in http middleware logger#5

Merged
irees merged 2 commits intomainfrom
log-response-size
Jan 30, 2026
Merged

Log response size in http middleware logger#5
irees merged 2 commits intomainfrom
log-response-size

Conversation

@irees
Copy link
Copy Markdown
Contributor

@irees irees commented Jan 30, 2026

No description provided.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds response body byte-count logging to the HTTP request logging middleware.

Changes:

  • Log a new response_size field alongside status, method, path, etc.
  • Extend the internal responseWriter wrapper to track bytes written in Write().

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@irees irees merged commit d932d48 into main Jan 30, 2026
4 checks passed
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.

2 participants