Skip to content

Improve HTTP Client Metrics URI KeyValue #35264

@zaa4wz

Description

@zaa4wz

This Issue follows 34176.

I have observed that when using the HTTP Interface, the URI formatting exposed by the http.client.requests metric is not the same as when using RestTemplate, RestClient, and WebClient.

If for RestTemplate, RestClient, and WebClient URI is:

"/hello-word-param\?{id}={id}"

Then, when using the HTTP Interface, the URI would be changed to

"/hello-word-param\?{queryParam-id}={queryParam-id[0]}"

Working Example.
Output from Standard Output:

RestTemplate
Registered URIs:
/hello-word
/hello-word-variable/{id}
/hello-word-param?id={id}

RestClient
Registered URIs:
/hello-word
/hello-word-variable/{id}
/hello-word-param?id={id}

HTTP Interface
Registered URIs:
/hello-word
/hello-word-variable/{id}
/hello-word-param?{queryParam-id}={queryParam-id[0]}

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)status: waiting-for-triageAn issue we've not yet triaged or decided on

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions