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

SlowServiceExecutionAspect has the same behavior as SlowHttpRequestProcessingAspect and SlowSqlQueryExecutionAspect only difference is that it counts service layer methods execution time.
SlowServiceExecutionAspect annotated with @ConditionalOnExpression("${aop.service.enabled:true}"), so to 'enable' this aspect you must set the property aop.service.enabled within the application.yaml to true.

Also, you have to set a duration value in the delaysTracking section within the application.yaml, property delaysTracking.service-duration acts like a threshold from which the aspect is based when deciding if a method execution is slow.

If the execution time exceeds the threshold, the aspect logs the details and notifies the developer that a slow service method execution is detected.

{"serverDuration": 60, "requestCorrelationId": "1eddff7de9458fb1"}