-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Micrometer URI templating does not apply for Forbidden requests #40305
Comments
/cc @brunobat (micrometer), @ebullient (micrometer), @geoand (kotlin) |
Your sample is not using Quarkus REST (formelly known as RESTEasy Reactive). However even with it, #40308 is required to make the tests pass. |
Thanks for the hint, I didn't realize that these dependencies had been migrated |
Always populate metrics uri in presence of auth failures
Closes: quarkusio#40305 (cherry picked from commit 8694c5c)
What is the standard behavior here?
Is this expected? I see multiple bugs related to templating not working for different error code. What is the standard behavior out of the box for Quarkus version 3.10.0? |
I would say that this is probably a bug, do you have a sample project that shows this problem in action? |
Describe the bug
In case a HTTP request ends up in 403 Forbidden, the Micrometer URI tag will not be templated, but include the full URI
there was a similar issue for 401 that was solved /issues/24938
Expected behavior
All reported metrics should have templated URI tags
Actual behavior
Requests that return 403 Forbidden create metrics that are not templated
How to Reproduce?
Reproducer can be found here:
https://github.com/oscarobr/micrometer-uri-template-bug
See the failing test case that verifies the issue
https://github.com/oscarobr/micrometer-uri-template-bug/blob/main/src/test/java/com/example/ExampleResourceTest.java
Output of
uname -a
orver
Linux ThinkPad-T14s-Gen-2a 6.5.0-28-generic #29~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Apr 4 14:39:20 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk version "21.0.2" 2024-01-16 LTS OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode, sharing)
Quarkus version or git rev
3.9.4
Build tool (ie. output of
mvnw --version
orgradlew --version
)------------------------------------------------------------ Gradle 8.6 ------------------------------------------------------------ Build time: 2024-02-02 16:47:16 UTC Revision: d55c486870a0dc6f6278f53d21381396d0741c6e Kotlin: 1.9.20 Groovy: 3.0.17 Ant: Apache Ant(TM) version 1.10.13 compiled on January 4 2023 JVM: 21.0.2 (Eclipse Adoptium 21.0.2+13-LTS) OS: Linux 6.5.0-28-generic amd64
Additional information
No response
The text was updated successfully, but these errors were encountered: