Using the @Timed method in a service

I work with Spring Boot and want to comment on some of my methods @Serviceusing @Timedso that I can view their statistics, invoking the metric endpoint.

I read from the Spring documentation that can use the dropwizard registry, but I cannot find any example in which it uses dropwizar annotations.

How can I customize the Spring Boot application, so each method annotated with help @Timedautomatically publishes its statistics using the built-in Spring module?

+4
source share
1 answer
+2

Source: https://habr.com/ru/post/1584900/


All Articles