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]}