-
Notifications
You must be signed in to change notification settings - Fork 66
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
Never use user input for web metrics #511
Conversation
...ain/java/io/micronaut/configuration/metrics/binder/web/ServerRequestMeterRegistryFilter.java
Outdated
Show resolved
Hide resolved
❌ Java CI failed: https://ge.micronaut.io/s/n2l5mnrhir4xk |
❌ GraalVM CE CI 17 latest failed: https://ge.micronaut.io/s/er5uecux4i7ak |
❌ Java CI failed: https://ge.micronaut.io/s/6wuclqiwq4frc |
❌ GraalVM CE CI 17 latest failed: https://ge.micronaut.io/s/bkjw2awzxuk5i |
❌ Java CI failed: https://ge.micronaut.io/s/ki4cju5fixuzo |
❌ Java CI failed: https://ge.micronaut.io/s/dnkfqulme3ebs |
❌ GraalVM CE CI 17 latest failed: https://ge.micronaut.io/s/gnjxg7hyu4myg |
❌ GraalVM CE CI 17 latest failed: https://ge.micronaut.io/s/wkvzvue4cytga |
❌ Java CI failed: https://ge.micronaut.io/s/ty7kb6md7swmi |
SonarCloud Quality Gate failed. |
I'm new to Github, so please apologize if this is not the correct way to re-open a bug. After upgrading my Micronaut project to Micronaut Micrometer 5.8.0 the built-in metrics "http_client_requests_seconds_count" & "http_client_requests_seconds_sum" metrics seem to be broken. Environment
Steps to reproduce
Expected Actual Assumption As I'm just a user of the built-in "http_client_requests_seconds_count" & "http_client_requests_seconds_sum" metrics I have no chance to change that behavior. Suggested fix Let ClientRequestMetricRegistryFilter & WebMetricsPublisher always write the "uri" and "serviceId" tag. If "micronaut.http.route.template" or "micronaut.http.serviceId" are missing at the request, use an artifical constants as tag value. |
@frank-mueller-at-kiwigrid-com create a separate issue if you think it is necessary |
Fixes #458 and Fixes #397