DX Application Performance Management

Expand all | Collapse all

Can we instrument Interface using PBD?

Jump to Best Answer
  • 1.  Can we instrument Interface using PBD?

    Posted 04-30-2015 04:57 AM

    Can we use Interface name in place of Class name and instrument the interface using PBD?



  • 2.  Re: Can we instrument Interface using PBD?

    Posted 04-30-2015 09:56 AM

    Yes you can. The "IdentifyInheritedAs" directive will include all the classes that implement said interface.



  • 3.  Re: Can we instrument Interface using PBD?

    Posted 05-05-2015 05:19 AM

    Hi,

    Can you please check if the below way of writing PBD for Interface is correct because its not reflecting on the investigator.

     

    SetFlag: <methodname>

    TurnOn: <methodname>

    IdentifyInheritedAs: <packagename>.<interface_name> <methodname>

    TraceOneMethodIfInherits: <packagename>.<interface_name> <methodname> BlamePointTracer "Investigator tree path"



  • 4.  Re: Can we instrument Interface using PBD?

    Posted 05-05-2015 09:36 AM

    SetFlag: <tracergroup>

    TurnOn: <tracergroup>

     

    IdentifyInheritedAs: <classname> <tracergroup>

     

    TraceOneMethodIfInherits: <tracergroup> <methodname> BlamePointTracer "Investigator tree path"



  • 5.  Re: Can we instrument Interface using PBD?
    Best Answer

    Posted 05-05-2015 09:37 AM

    Please take the time to read our wiki on creating and using PBDs on the dev site (http://bit.ly/caapm_dev).



  • 6.  Re: Can we instrument Interface using PBD?

    Posted 05-05-2015 06:22 AM

    I just want to monitor only one method of the interface used.



  • 7.  Re: Can we instrument Interface using PBD?

    Posted 05-05-2015 02:03 PM

    Please refer to Hiko's responses above.

     

    Also, check this:Announcing Updated Doc for PBD Directives and Tracers, and this Instrumentation Best Practices