Skip to content

Client observations URI template missing when using RestTemplateAdapter #31144

Closed
@felzan

Description

@felzan

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 😀

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)theme: observabilityAn issue related to observability and tracingtype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions