Skip to content

Spring Web RestTemplate http.client.requests Metrics No Longer Have client.name Tag #29839

@mchin7

Description

@mchin7

Affects: 6.0.3


Problem Description

Ever since Spring Framework 6, the client.name tag from http.client.requests metrics are missing.

Steps to Reproduce

  1. Create a Spring Boot 3.0 application (which comes with Spring Framework 6)
  2. Add spring-boot-starter-actuator and spring-boot-starter-web dependencies
  3. Run a task that periodically send requests to external endpoint using RestTemplate
  4. Visit /actuator/metrics/http.client.requests endpoint and observe that the client.name tag is missing

Sanity Check

  1. Create a Spring Boot 2.7.6 application (which comes with Spring Framework 5)
  2. Add spring-boot-starter-actuator and spring-boot-starter-web dependencies
  3. Run a task that periodically send requests to external endpoint using RestTemplate
  4. Visit /actuator/metrics/http.client.requests endpoint and observe that the client.name tag is present

I've created a repository to help in reproducing the issue. Check out https://github.com/mchin7/actuator-missing-tag-demo

Sorry if this is issue is not a Spring Framework issue, any redirection to the correct project is highly appreciated!

Metadata

Metadata

Assignees

Labels

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

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions