The JAX-RS micrometer metrics implemented in the PRs listed below generates one unique metric per combination of path parameteres in the URL. For instance if you have the following path annotation on an API:
A request to the URL /user/1234 will result in the following metric:
Since the uri-tag in the metric uses the actual path value this could lead to a huge number of metrics since it will create one metric per user. It will also be more difficult to aggregate the metrics for one operation in tools like Prometheus/Grafana.
A suggestion is to instead generate the metric with the uri-tag as a templated url. I think this is how the metrics generated by Spring MVC is constructed. This would result in the following metric instead:
Not sure if this is possible and what the best solution is, but it might be possible to use the UriInfo class (https://javaee.github.io/javaee-spec/javadocs/javax/ws/rs/core/UriInfo.html) to get the URI without the values, or use that class to replace the actual values with a placeholder/variable text.