add micrometer to collect metrics for prometheus
This commit is contained in:
parent
551488952a
commit
202fa8ecbc
|
@ -29,7 +29,6 @@ public class MetricsAspect {
|
|||
@Around("@annotation(io.micrometer.core.annotation.Timed)")
|
||||
public Object timeAnnotatedMethods(ProceedingJoinPoint joinPoint) throws Throwable {
|
||||
Method method = ((MethodSignature) joinPoint.getSignature()).getMethod();
|
||||
Timed timed = method.getAnnotation(Timed.class);
|
||||
|
||||
String className = joinPoint.getTarget().getClass().getSimpleName();
|
||||
String methodName = method.getName();
|
||||
|
|
Loading…
Reference in New Issue