I'm working with Spring Boot, and I want to annotate some of my @Service
methods with @Timed
so I could view their statistics calling the metrics endpoint.
I've read from the Spring documentation that is can use dropwizard registry, but I can't find any example in which it uses dropwizar annotations.
How can I configure my Spring Boot app so each method annotated with @Timed
automatically publishes its statistics using the build-in Spring actuator module?