DX Application Performance Management

Expand all | Collapse all

PBD directive question - internal classes

Jump to Best Answer
  • 1.  PBD directive question - internal classes

    Posted 07-13-2016 05:14 AM

    Hi - one of our developers has asked me this and I dont' know the answer if anyone can help......

     

    To monitor internal class do I identify using standard directive e.g.

     

    IdentifyClassAs: org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker ……

     

     

    Thanks for any help.



  • 2.  Re: PBD directive question - internal classes

    Posted 07-13-2016 09:32 AM

    musma03  Hiko_Davis DavidLewis

     

    Any thoughts or pointers on this?



  • 3.  Re: PBD directive question - internal classes

    Posted 07-13-2016 03:45 PM

    Hi,

     

    IdentifyClassAs is for associating a specific class to the specified Tracer Group.

     

    Format:

    IdentifyClassAs:  <class> <Tracer Group>

     

    You want to use one of the following.  The first one may open you up to a metrics explosion if you have a lot of methods in the class.

     

    TraceAllMethodsOfClass

    This traces all methods except for constructors () and static initializers () in the specified class. Class name should be fully qualified.

    Format:

    TraceAllMethodsOfClass:   <class> <Tracer> "<Investigator Tree Path>"

     

    TraceOneMethodOfClass

    This traces a specific method in the specified class. Class name should be fully qualified.

     

    Format:

    TraceOneMethodOfClass: <class> <method> <Tracer> "<Investigator Tree Path>"

     

    Thanks,
    Matt



  • 4.  Re: PBD directive question - internal classes

    Posted 07-13-2016 04:57 PM

    Hi Dave:

    Please let us know if Matt's answer was sufficient and we can mark this thread as Answered. Or if there are follow-up questions

    Thanks

    Hal



  • 5.  Re: PBD directive question - internal classes

    Posted 07-14-2016 03:21 AM

    OK, thanks for the replies, but its not quite what I was looking for.

     

    The specific class - org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker

     

    has what they are referring to as an "internal" class - its after the dollar sign - AsyncMessageListenerInvoker

     

    So the question is can we define the classname in that format - "org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker"

    to work with "IdentifyClassAs" ?

     

    After that we will use "TraceComplexMethods" as the Tracer.

     

    Thanks



  • 6.  Re: PBD directive question - internal classes
    Best Answer

    Posted 07-14-2016 09:07 AM

    As long as its exposed to us you could write it as such:

     

    IdentifyClassAs org.springframework.jms.listener.DefaultMessageListenerContainer$AsyncMessageListenerInvoker <name of tracer group>

     

    and then

     

    TraceComplexMethods: <name of tracer group> .....



  • 7.  Re: PBD directive question - internal classes

    Posted 07-14-2016 09:13 AM

    OK thanks, we will try that. Thanks again for the quick response.



  • 8.  Re: PBD directive question - internal classes

    Posted 07-14-2016 09:15 AM

    Hi Dave:

      Please let us know soon if Matt's latest response solves the issue or follow-up assistance is required

    Thanks

    Hal



  • 9.  Re: PBD directive question - internal classes

    Posted 07-14-2016 09:23 AM

    Yes, will do. I have sent this response over to the developers so I will update this post once we have tested it.



  • 10.  Re: PBD directive question - internal classes

    Posted 07-15-2016 08:36 AM

    Hi Dave:

       Since a response has been provided and there are no further action items, I have marked it as "Assumed Answered." I am not sure how long it is going to take to hear back from your developers. If it is going to take a while, we could mark it as Answered and you can unmark it later ,should it not work and you need further assistance.Let me know if that is acceptable.

     

    Thanks

    Hal German



  • 11.  Re: PBD directive question - internal classes

    Posted 07-15-2016 08:39 AM

    No that’s fine, sorry I didn’t get back to you. Hectic morning here !!

     

     

     

    Dave Richards | Application Hosting Services APM team

    PaaS - Middleware | Infrastructure Services

    Tel Number: 03301535505

     

    Email:dave.richards@barclays.com

     

    Barclays| Barclays Technology Centre (Radbroke).

    Respect  |  Integrity  |  Service  |  Excellence  |  Stewardship

    Helping people achieve their ambitions – in the right way

     

    http://middlewarewiki.barclays.co.uk/doku.php?id=components:wily

    http://teams.barclays.intranet/sites/apaas/SitePages/Wily%20Cartridge.aspx



  • 12.  Re: PBD directive question - internal classes

    Posted 07-15-2016 08:49 AM

    Thanks Dave  I have changed to Answered. Whether if works or not, I know you will add a note about your team's progress :-) And we can take it from there if needed.