Skip to content

Conversation

@cratelyn
Copy link
Member

in #4174, we refactored this middleware so that it
is now agnostic to the particular metrics structure used by the
extractor, meaning that the constructor no longer accepts a
RequestBodyFamilies<L> parameter.

in the wake of this change, our request body frame size metrics
middleware has a constructor with a type signature like X -> impl Layer.

elsewhere throughout the project, constructors that accept an extractor
and return a svc::Layer are typically called layer_via().

this commit renames NewRecordBodyData::new() to
NewRecordBodyData::layer_via().

Signed-off-by: katelyn martin [email protected]

@cratelyn cratelyn self-assigned this Sep 26, 2025
@cratelyn cratelyn marked this pull request as ready for review September 29, 2025 21:08
@cratelyn cratelyn requested a review from a team as a code owner September 29, 2025 21:08
in #4174, we refactored this middleware so that it
is now agnostic to the particular metrics structure used by the
extractor, meaning that the constructor no longer accepts a
`RequestBodyFamilies<L>` parameter.

in the wake of this change, our request body frame size metrics
middleware has a constructor with a type signature like `X -> impl
Layer`.

elsewhere throughout the project, constructors that accept an extractor
and return a `svc::Layer` are typically called `layer_via()`.

this commit renames `NewRecordBodyData::new()` to
`NewRecordBodyData::layer_via()`.

Signed-off-by: katelyn martin <[email protected]>
@cratelyn cratelyn force-pushed the kate/http-prom.rename-new-to-layer-via branch from 8142615 to 711715a Compare September 30, 2025 16:30
@cratelyn
Copy link
Member Author

rebased on main to address conflicts with #4203.

@cratelyn cratelyn enabled auto-merge (squash) September 30, 2025 16:31
@cratelyn cratelyn merged commit e10dc4e into main Sep 30, 2025
15 checks passed
@cratelyn cratelyn deleted the kate/http-prom.rename-new-to-layer-via branch September 30, 2025 16:38
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.

4 participants