DefaultWebClient ignores baseUrl when setting URI_TEMPLATE_ATTRIBUTE #30027
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
When a WebClient request is build using both :
then
baseUrl
path
seems ignored in the provided metrics tagsExample :
baseUrl
=https://github.com/spring-projects/spring-boot/releases
uriTemplate
=/tag/v{version}
Actual metrics tags :
uri
=/tag/v{version}
client.name
=github.com
I think that metrics tags should not ignore
baseUrl
path
(i.e./spring-projects/spring-boot/releases
)I've not checked (so I may be wrong), but I don't think there is the same behavior with RestTemplate.
spring-boot version : 2.7.8 / OpenJDK 64-Bit Server VM Temurin-17.0.3+7
The text was updated successfully, but these errors were encountered: