-
Notifications
You must be signed in to change notification settings - Fork 38.6k
Closed
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestheme: observabilityAn issue related to observability and tracingAn issue related to observability and tracingtype: regressionA bug that is also a regressionA bug that is also a regression
Milestone
Description
Spring Boot Version: 3.1.6
Given a webflux application with metrics enabled, when a request is done to a non existing endpoint, the status tag is 200, instead of 404 (not found)
I have attached a sample application.
webflux-metrics.zip
To reproduce the issue
- Start the application
- Make a request to a non existing endpoint, for example to http://localhost:8080/non-existing
- Check the metrics to the prometheus endpoint http://localhost:8080/actuator/prometheus
http_server_requests_seconds_count{error="ResponseStatusException",exception="ResponseStatusException",method="GET",outcome="SUCCESS",status="200",uri="/**",} 1.0
http_server_requests_seconds_sum{error="ResponseStatusException",exception="ResponseStatusException",method="GET",outcome="SUCCESS",status="200",uri="/**",} 0.005408
Notice the tag status="200"
Notice that with SpringBoot 3.1.5, it works correctly, having the status=404
juliojgd
Metadata
Metadata
Assignees
Labels
in: webIssues in web modules (web, webmvc, webflux, websocket)Issues in web modules (web, webmvc, webflux, websocket)status: backportedAn issue that has been backported to maintenance branchesAn issue that has been backported to maintenance branchestheme: observabilityAn issue related to observability and tracingAn issue related to observability and tracingtype: regressionA bug that is also a regressionA bug that is also a regression