if (name.isEmpty()) {
name = nameCache.get(methodInvocation.getMethod());
}
Timer timer;
if (timed.isRequest()) {
timer = Timing.startRequest(name, timed.threshold());
} else {
timer = Timing.start(name, timed.threshold());
}
try {
return methodInvocation.proceed();