Automatic metrics configuration for WebMvc in non-boot environments #27277
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
status: duplicate
A duplicate of another issue
theme: observability
An issue related to observability and tracing
Spring Boot has
WebMvcMetricsFilter
andWebMvcMetricsAutoConfiguration
that "magically" instruments all RequestMappings and similar with Micrometer metrics.It would be great if this was possible to do in a core Spring project too.
(On a general note, I find this happens often now: Boot gets new tricks and features which just as well could have been introduced in core Spring, and benefit both types of projects. This is sad.)
PS: I find the solution for this instrumenting to be a bit .. high level? One would maybe have thought that Spring easily could have instrumented this on a lower level - directly on the mappings - thereby directly taking advantage of the knowledge of the path with path variables etc.
The text was updated successfully, but these errors were encountered: