I would like to capture the business metrics, If I have a class "FileProcess" that has method -countedFiles(), that returns
integers- number of files processed, how can this is captured in CA APM
This FieldPack from Keane Yu yuvke01 should be able to cover your requirement as it can extract method parameters and return values:
[FieldPack] Enhanced Full Transaction Trace Detail Tracer
Hope that helps.
P.S. I also edited your thread title to refer to method return value
Your reply was helpful. We use Spring Boot Applications on Openshift platform , so if we add jar from FieldPack detail, in our classpath. Can we see the trace of every method and return value,
For example a method returns integer value between 0 to 50 randomly
Random rand = new Random(); return value = rand.nextInt(50);
, can we get the historical trend.
This may be a silly question, I am newBie to CA-APM . Sorry
I have not used this extension myself but if you follow the installation/configuration steps in the EnhancedFullTTDetail_readme.pdf you should be able to see method return values as properties in your transaction traces.
yuvke01 can you please comment on any concerns with this being able to work for Spring boot applications?
Also do any other community users have experience with the use of this extension that they can pass on to Raja?
If all the return objects are just simple objects (String, int, long etc.) or has override 'toString' method (which can return String), then you just need to use the officially supported tracer "FullTTDetailTracer". It can automatically save return value and decorate it into transaction trace.
My extension is to handle complex return object.
FYI: The FullTTDetailsTracer tracer yuvke01 referred to is documented here for new mode in 10.5:
Retrieving data ...