-
Notifications
You must be signed in to change notification settings - Fork 41.2k
Provide a URI tag for HTTP requests handled by MessageDispatcherServlet #15390
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Thanks for the suggestion, but I'm not sure that the URI is of much value when using SOAP as it won't tell you that much. It'll only provide details of the service that's being called and won't provide any information about the specific request which is in the body. Perhaps I have misunderstood? What did you expect to appear in the URI tag? Overall, this feels to me like this may be better handled in Spring Web Services as part of SWS-1024. /cc @gregturn |
@wilkinsona, Thank you for your answer!
So, I agree that specific request info is containing in body:
And I wanna have something like this:
Therefore my point is that I want to have different metrics for my different SOAP-methods, like Bun in fact, our clients request service by one URL, even service has a lot of methods. So the URI in prometheus will be the same in this case anyway:) |
Thanks for the additional information. To implement that we'd need something (perhaps a request attribute) that provides a URI known to have low cardinality so it's suitable for use as a tag's value. AFAIK, Spring Web Services doesn't provide anything like that at the moment. Let's see what @gregturn says. |
@wilkinsona what's the plan? |
@wilkinsona is correct. Spring WS does not (yet) have support for Micrometer. I haven't had time to pursue that feature addition, but can try to move it up in priority. |
Thank you everyone, we will keep in touch regarding to this issue :) |
Hi, Any update on this? Is there any workaround to add the URI to the labels atm? |
As a workaround you can use CXF as a SOAP handler because I've opened a PR for CXF starter yet: |
Trying to use http_server_requests actuator metrics (Spring Boot 2.1.1) for web-method annotated by
in
@Endpoint
class.Do request like this:
And in prometheus I see:
This issue like a micrometer issue #431, but there were URI cutting and not UNKNOWN. This is because of update
WebMvcTags
solving #12447.So as I can see, new
uri
method doesn't support MessageDispatcherServlet which request does not containBEST_MATCHING_PATTERN_ATTRIBUTE
attribute.You can reproduce this and look at whole code at my repo.
The text was updated successfully, but these errors were encountered: