Can we use Interface name in place of Class name and instrument the interface using PBD?
Yes you can. The "IdentifyInheritedAs" directive will include all the classes that implement said interface.
Can you please check if the below way of writing PBD for Interface is correct because its not reflecting on the investigator.
IdentifyInheritedAs: <packagename>.<interface_name> <methodname>
TraceOneMethodIfInherits: <packagename>.<interface_name> <methodname> BlamePointTracer "Investigator tree path"
IdentifyInheritedAs: <classname> <tracergroup>
TraceOneMethodIfInherits: <tracergroup> <methodname> BlamePointTracer "Investigator tree path"
Please take the time to read our wiki on creating and using PBDs on the dev site (http://bit.ly/caapm_dev).
I just want to monitor only one method of the interface used.
Please refer to Hiko's responses above.
Also, check this:Announcing Updated Doc for PBD Directives and Tracers, and this Instrumentation Best Practices