path: util/aop/aop-service/src/main/java/com/knubisoft/aop/service/MethodExecutionTimeAspect.java

MethodExecutionTimeAspect works on the service layer and collects metrics about how long it took to execute and process the business logic of a particular method for each of its invocations (sum/max).
MethodExecutionTimeAspect annotated with @ConditionalOnProperty(value = "management.serviceLayerMetrics.methodExecutionTimeEnabled", havingValue = "true"), so to 'enable' this aspect you must set the property management.serviceLayerMetrics.methodExecutionTimeEnabled within the application.yaml to true.

Metrics we collect using Micrometer are also available for Prometheus (we create PrometheusMeterRegistry) and can be retrieved by the Spring Actuator endpoint your_host:your_port/actuator/prometheus

{"serverDuration": 43, "requestCorrelationId": "28f5c7fb1dcf6b12"}