Skip to content

一堆错误啊、、、、、 #5

Description

@edocevol

@before("publicMethods() && annotation(countedAnnotation)")
public void instrumentCounted(JoinPoint jp, Counted countedAnnotation)
{
String name= name(jp.getTarget().getClass(), StringUtils.hasLength(countedAnnotation.name())?
countedAnnotation.name():jp.getSignature().getName(),"counter");
Counter counter = counters.computeIfAbsent(name,key->metricRegistry.counter(java.lang.String.valueOf(key)));
}

@Before("publicMethods()&&annotation(meteredAnnotaion)")
public void instrumentMetered(JoinPoint jp, Metered meteredAnnotaion)
{
    String name=name(jp.getTarget().getClass(),StringUtils.hasLength(meteredAnnotaion.name())?meteredAnnotaion.name():jp.getSignature().getName(),"meter");
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions