spring-data-commons
spring-data-commons copied to clipboard
Create infrastructure to record repository invocation metrics using Micrometer
We should migrate Spring Boot's MetricsRepositoryMethodInvocationListener into Spring Data Commons to provide a direct utility for repository metrics invocation. Spring Data depends since version 3.0 optionally on Micrometer so we have the right level of dependency access.
See also https://github.com/spring-projects/spring-boot/blob/c93e248c46c2c4a7cef5596b23e54c715c52a204/spring-boot-project/spring-boot-actuator/src/main/java/org/springframework/boot/actuate/metrics/data/MetricsRepositoryMethodInvocationListener.java
From our planning perspective, this will have to wait for another while until we get to work on this feature.