Répondre

0

I figured it out. Ce serait génial si toutes les fonctionnalités de http://www.ryantenney.com/metrics-spring/ sont documentées :) Mais bon, c'est pourquoi c'est open source.

<metrics:annotation-driven metric-registry="metrics" /> 
<!-- Monitoring the controller --> 
<beans:bean id="monitoringInterceptor" class="com.ryantenney.metrics.spring.TimedMethodInterceptor"> 
    <beans:constructor-arg ref="metrics"/> 
    <beans:constructor-arg> 
     <beans:value type="java.lang.Class">org.myapp.controller.MyController</beans:value> 
    </beans:constructor-arg> 
</beans:bean> 

<aop:config> 
    <!-- name of the class or interface --> 
    <aop:pointcut id="monitoringPointcut" expression="execution(* org.myapp.controller.MyController..*(..))"/> 
    <aop:advisor advice-ref="monitoringInterceptor" pointcut-ref="monitoringPointcut"/> 
</aop:config> 
Questions connexes