spring-projects / spring-data-commons

Spring Data Commons. Interfaces and code shared between the various datastore specific implementations.
https://spring.io/projects/spring-data
Apache License 2.0
768 stars 667 forks source link

Create infrastructure to record repository invocation metrics using Micrometer #2735

Open mp911de opened 1 year ago

mp911de commented 1 year ago

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

mp911de commented 9 months ago

From our planning perspective, this will have to wait for another while until we get to work on this feature.