DX Application Performance Management

Expand all | Collapse all

Capture business metrics (from method return value)

  • 1.  Capture business metrics (from method return value)

    Posted 05-07-2018 03:13 PM

    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 



  • 2.  Re: Capture business metrics (from method return value)

    Posted 05-07-2018 06:49 PM

    Hi Raja,

    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.

     

    Regards,

     

    Lynn

    P.S. I also edited your thread title to refer to method return value



  • 3.  Re: Capture business metrics (from method return value)

    Posted 05-08-2018 11:52 AM

    Hi Lynn, 

     

    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 

     

     



  • 4.  Re: Capture business metrics (from method return value)

    Posted 05-08-2018 10:47 PM

    Hi Raja,

    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?

     

    Thanks,

     

    Lynn



  • 5.  Re: Capture business metrics (from method return value)

    Posted 05-08-2018 11:10 PM

    Hi 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.

     

    Thanks,

    Keane



  • 6.  Re: Capture business metrics (from method return value)

    Posted 05-09-2018 12:30 AM

    Hi Raja,

    FYI: The FullTTDetailsTracer tracer yuvke01 referred to is documented here for new mode in 10.5:

    com.wily.introscope.agent.trace.hc2.FullTTDetailsTracer 

    Regards,

    Lynn