I wanted to instrument a large number of classes to use with Spring Insight and instead of adding the @InsightOperation manually to the methods, I wrote an aspect to annotate the methods using point cuts.
However, this is not working. While the manual annotation affects the Spring Insight trace logging, the AspectJ method does not work.
Is there anything I am doing wrong here? (I decompiled the classes after aspectizing and do find the annotation in the class methods)
This is the aspect code snippet:
declare @method :public * com.example.IExample.execute(..) : @InsightOperation;