Closed
Description
Affects: 6.1
I think it would be better if RequestEntity was build with uriTemplate when available.
I was playing around with Http Interface, RestTemplate and metrics and could see that the URI was not showing properly in the metric. ex:
http_client_requests_seconds_count{client_name="jsonplaceholder.typicode.com",error="none",exception="none",method="GET",outcome="SUCCESS",status="200",uri="none",} 1.0
When building RequestEntity using uriTemplate it shows correctly. ex:
http_client_requests_seconds_count{client_name="jsonplaceholder.typicode.com",error="none",exception="none",method="GET",outcome="SUCCESS",status="200",uri="/todos/{id}",} 1.0
It seems that it was planned using uriTemplate #30117 (comment)
I'll try to work on this 😀