Skip to content

Add response body size metrics to MetricsOps and middleware#7748

Draft
alexcardell wants to merge 8 commits into
http4s:series/0.23from
alexcardell:body-size
Draft

Add response body size metrics to MetricsOps and middleware#7748
alexcardell wants to merge 8 commits into
http4s:series/0.23from
alexcardell:body-size

Conversation

@alexcardell

@alexcardell alexcardell commented Nov 12, 2025

Copy link
Copy Markdown

Implement the response part of #7749

I've added benchmark suites

Client middleware benchmark results:
baseline result: https://pastebin.com/2J6rywns
after change: https://pastebin.com/ivFWbKY7

(Run on a Macbook Pro with M4 Pro chip)

I could see it making sense to make this opt-in

TODOs:

  • Refactor server middleware
  • Add server middleware benchmark
  • Explore opt-in middleware flag

@alexcardell alexcardell marked this pull request as draft November 12, 2025 17:24
@iRevive

iRevive commented Dec 19, 2025

Copy link
Copy Markdown
Contributor

Here is my old attempt to solve this: #7491

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants