Skip to content

DefaultWebClient ignores baseUrl when setting URI_TEMPLATE_ATTRIBUTE #30027

Closed
@christophejan

Description

@christophejan

When a WebClient request is build using both :

  1. a baseUrl
  2. a URI template

then baseUrl path seems ignored in the provided metrics tags

Example :

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

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions