You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Frédéric CURVAT (Jira)" <ji...@apache.org> on 2024/03/18 07:06:00 UTC
[jira] [Commented] (CXF-8963) URI is always unknown in server request metrics
[ https://issues.apache.org/jira/browse/CXF-8963?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17827856#comment-17827856 ]
Frédéric CURVAT commented on CXF-8963:
--------------------------------------
Hello,
Issue is well fixed, thanks all !
> 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
> Affects Versions: 4.0.0, 4.0.1, 4.0.2, 4.0.3
> Reporter: Frédéric CURVAT
> Assignee: Andriy Redko
> Priority: Major
> Fix For: 4.0.4
>
> 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)