DX Application Performance Management

  • 1.  Putting method arg/param into metric (urgent need)

    Posted Mar 26, 2014 01:45 PM

    Hello,

    I need to be able to put data passed to an instrumented method into a metric. I know I can use things like TraceOneMethodWithParametersOfClass to name things based on the parameter values but I actually want to put the parameter values into a metric graph.

    For example, I would have a method doSomething(int value). I want to be able to have a graph showing what value is over time.

    I found a few similar requests for this type of functionality via community search but never found anyone that said how to/if you could do this.

    Can someone help please?

    Thanks.



  • 2.  RE: Putting method arg/param into metric (urgent need)

    Posted Mar 26, 2014 04:46 PM

    This would be best accomplished by creating your own custom tracer in Java. Is this something you'd be comfortable trying? 



  • 3.  RE: Putting method arg/param into metric (urgent need)

    Posted Mar 26, 2014 05:22 PM

    I am sure I could do it if I had time, unfortunately this is a pretty urgent need that I was hoping was available in some existing way. :(



  • 4.  RE: Putting method arg/param into metric (urgent need)

    Posted Mar 26, 2014 06:53 PM

    How urgent? I might be able to whip something up as a stop-gap and supply the source for future enhancements. 



  • 5.  RE: Putting method arg/param into metric (urgent need)

    Posted Mar 26, 2014 10:53 PM

    Sadly I need it yesterday, if there was anyway you could whip something up anytime soon that would be greatly appreciated. I will look into doing it myself as well.



  • 6.  RE: Putting method arg/param into metric (urgent need)

    Posted Mar 27, 2014 01:08 PM
      |   view attached

    Ok - here's my first attempt. It's completely untested, but it should get you started. Included is the extension .jar, with source, and a PBD containing some tracer definitions. 

    Attachment(s)



  • 7.  RE: Putting method arg/param into metric (urgent need)

    Posted Mar 27, 2014 11:30 PM

    Thanks a lot Jack. I put in a kludgy interim solution so my people could do some load testing and get some results, but definitely plan to use this as the permanent solution going forward. I really appreciate you putting in the time to get this initial version out there. I feel a lot more people than me could potentially make use of it.



  • 8.  Re: Putting method arg/param into metric (urgent need)

    Broadcom Employee
    Posted Dec 29, 2015 12:23 PM

    Marking as answered.