Skip to content

Conversation

@cratelyn
Copy link
Member

our metrics layer is generic across an N-typed service factory.

this commit introduces types aliases that apply X-typed extractor
parameters to the linkerd-http-prom middleware, which are unaware of
a concrete metrics extractor.

we use this to reduce the complexity of the layer() function's
type signature.

see #4180.

NB: based upon #4188, and
#4186.

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

@cratelyn cratelyn self-assigned this Sep 24, 2025
@cratelyn cratelyn marked this pull request as ready for review September 24, 2025 04:57
@cratelyn cratelyn requested a review from a team as a code owner September 24, 2025 04:57
@cratelyn cratelyn force-pushed the kate/app-inbound.prepare-metric-imports branch 2 times, most recently from f5f14f1 to 0444b1d Compare September 24, 2025 20:04
@cratelyn cratelyn force-pushed the kate/app-inbound.metrics-layer-aliases branch from 06a29fe to 81d037b Compare September 24, 2025 20:09
Base automatically changed from kate/app-inbound.prepare-metric-imports to main September 24, 2025 20:14
our metrics layer is generic across an `N`-typed service factory.

this commit introduces types aliases that apply `X`-typed extractor
parameters to the `linkerd-http-prom` middleware, which are unaware of
a concrete metrics extractor.

we use this to reduce the complexity of the `layer()` function's
type signature.

see #4180.

NB: based upon #4188, and
#4186.

Signed-off-by: katelyn martin <[email protected]>
@cratelyn cratelyn force-pushed the kate/app-inbound.metrics-layer-aliases branch from 81d037b to 9cf2df9 Compare September 24, 2025 20:14
@cratelyn cratelyn enabled auto-merge (squash) September 24, 2025 20:15
@cratelyn cratelyn merged commit cd11ef1 into main Sep 24, 2025
15 checks passed
@cratelyn cratelyn deleted the kate/app-inbound.metrics-layer-aliases branch September 24, 2025 20:20
cratelyn added a commit that referenced this pull request Sep 26, 2025
this commit introduces an additional layer of telemetry to the inbound
proxy's http router.

either http and grpc metrics are used, depending upon the policy that
authorized a given request.

this is based upon #4174, which refactored the
request body telemetry middleware to be metrics agnostic.

see:
* #4189
* #4188
* #4187
* #4186
* #4174
* #4165
* #4166
* #4127

Signed-off-by: katelyn martin <[email protected]>
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.

3 participants