Frédéric CURVAT created CXF-8963:
------------------------------------
Summary: URI is always unknown in server request metrics
Key: CXF-8963
URL: https://issues.apache.org/jira/browse/CXF-8963
Project: CXF
Issue Type: Bug
Components: JAX-RS
Reporter: Frédéric CURVAT
Attachments: example.zip
Since 4.0.0 (combined with spring boot 3.x), actuator prometheus -
http_server_request - stats are not good anymore, they are missing the correct
uri tag that is now always UNKNOWN.
In 3.6.2 (combined with spring boot 2.7.x) this was working perfectly.
Here attached a pet project to reproduce the issue.
Run :
{code:java}
curl -s http://127.0.0.1:8080/services/sayHello/world
curl -s http://127.0.0.1:8080/services/notFound
Hello world, Welcome to CXF RS Spring Boot World!!!
curl -s http://127.0.0.1:8080/actuator/prometheus | grep requests_seconds_count
cxf_server_requests_seconds_count{exception="None",method="GET",operation="sayHello",outcome="SUCCESS",status="200",uri="/services/sayHello/
{a}
",} 1.0
http_server_requests_seconds_count
{error="none",exception="none",method="GET",outcome="SUCCESS",status="200",uri="UNKNOWN",}
1.0
http_server_requests_seconds_count
{error="none",excetpion="none",method="GET",outcome="CLIENT_ERROR",status="404",uri="NOT_FOUND",}
1.0
{code}
So cxf_server_requests are good but not http_server_requests
Worth to notice there was a fix working a while ago :
[https://github.com/apache/cxf/commit/cab4513374a14fd3549bd0cf86ef9b4996637546]
--
This message was sent by Atlassian Jira
(v8.20.10#820010)