-
Notifications
You must be signed in to change notification settings - Fork 40.8k
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
management.observations.http.server.requests.name no longer has any effect #39083
Comments
Workaround seems to be exposing a bean that extends DefaultServerRequestObservationConvention and call super(@value("${management.observations.http.server.requests.name}") |
Thanks for the report. It looks like this functionality was lost as part of #37344. I think we need to auto-configure a |
I can't see why |
Doublechecked WebClient metrics - works correctly when new property used, I must have used WebClientBuilder created by hand or something bad when checking this. So only server.requests.name issue remains. Thanks |
Ugh, fixed on the wrong branch. |
When using spring-boot-starter-webflux with spring-boot-starter-parent=3.1.7, server/client metrics are properly aliased via "management.observations.http.server.requests.name" documented application property:
2024-01-10T14:44:05.179+01:00 INFO 757337 --- [trics-publisher] i.m.c.i.logging.LoggingMeterRegistry : ALIASED{error=none,exception=none,method=GET,outcome=SUCCESS,status=200,uri=/test} throughput=0.2/s mean=0.003425731s max=0.020831402s
After switching to spring-boot-starter-parent=3.2.0, aliasing doesn't work and default name is used (same for reactive webclient metrics, skipped for brevity):
2024-01-10T14:46:07.906+01:00 INFO 757965 --- [trics-publisher] i.m.c.i.logging.LoggingMeterRegistry : http.server.requests{error=none,exception=none,method=GET,outcome=SUCCESS,status=200,uri=/test} throughput=0.2/s mean=0.016004746s max=0.024342709s
Steps to reproduce:
The text was updated successfully, but these errors were encountered: