Skip to content

WebClientMetricsAutoConfiguration relies on ResTemplateMetricsAutoConfiguration #14269

@snicoll

Description

@snicoll

Right now, WebClientMetricsAutoConfiguration relies on a Filter created by RestTemplateMetricsAutoConfiguration.

RestTemplate is always present when WebClient is present (as the former is in spring-web and the latter in spring-webflux that as a compile dependency on spring-web). However, it makes a bit hard to figure out what the scope of the filter is so it would be better to have a first class concept for this.

Looking at WebClientMetricsAutoConfiguration it probably should be in the client package, which would allow to have a single auto-configuration for both use cases.

Also, since the introduction of WebClient metrics, the message is wrong as it refers to RestTemplate which kinda proves the point the scope is currently hard to track.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions