APM and Custom Instrumentation

APM and Custom Instrumentation

Hi All,

I am having trouble getting the desired trace output from specific packages/classes/methods.
It seems i am doing all the right things but still do not get beyond a certain Vendor class.
http://help.appmanager.com/apminsight-agent-configuration
https://www.site24x7.com/help/apm/java-agent/custom-instrumentation.html#conf

 
  1. nl/comp/portaal/controller/ShowPortletController : :
  2. nl/comp/portaal/tools/JournalArticleTool : getFieldValue :
  3. com/liferay/portlet/asset/service/.* : :

 
  1. com/liferay/portal/.* : :
  2. nl/comp/.* : :

I can tell that the  custom_instrumentation.conf file is picked up 

  1. [02 Jun 2017 12:45:57][main][INFO]: BackgroundSequenceConfig initialized.
  2. [02 Jun 2017 12:45:57][main][INFO]: Configuration file listener initialized successfully.
  3. [02 Jun 2017 12:45:59][main][INFO]: SSLContext initialized successfully.
  4. [02 Jun 2017 12:45:59][main][INFO]: APM Insight agent initialized successfully.
  5. [02 Jun 2017 12:45:59][main][INFO]: All static interceptors loaded successfully.
  6. [02 Jun 2017 12:45:59][main][INFO]: Adding custom interceptor: CiD-rom/liferay/portlet/asset/service/.*[ClassMatcher:ClassMatcher[com/liferay/portlet/asset/service/.*], ExcludeMethodMatcher:null, IncldueM
  7. ethodMatcher:ManyMethodMatcher[MethodMatcher[\Q:\E [.*]]|], ]to interceptor factory.
  8. [02 Jun 2017 12:45:59][main][INFO]: Adding custom interceptor: CiD-nl/comp/portaal/controller/ShowPortletController[ClassMatcher:ClassMatcher[nl/comp/portaal/controller/ShowPortletCo
  9. ntroller], ExcludeMethodMatcher:null, IncldueMethodMatcher:ManyMethodMatcher[MethodMatcher[\Q:\E [.*]]|], ]to interceptor factory.
  10. [02 Jun 2017 12:45:59][main][INFO]: Adding custom interceptor: CiD-nl/comp/portaal/tools/JournalArticleTool[ClassMatcher:ClassMatcher[nl/comp/portaal/tools/JournalArticleTool], Exclu
  11. deMethodMatcher:null, IncldueMethodMatcher:ManyMethodMatcher[MethodMatcher[\QgetFieldValue:\E [.*]]|], ]to interceptor factory.
  12. [02 Jun 2017 12:45:59][main][INFO]: All custom interceptors loaded successfully
  13. [02 Jun 2017 12:45:59][main][INFO]: Package exclusion pattern to be used: javax/.*|java/.*|sun/.*|org/w3c/dom/.*|org/xml/sax/.*|com/sun/.*|org/jboss/.*|org/apache/jasper/.*|com/manageengine/apminsight/age

I see in the logs for example 
  1. [02 Jun 2017 12:48:25][localhost-startStop-2][INFO]: clz instrumented: nl/comp/portaal/controller/ShowPortletController
  2. [02 Jun 2017 14:05:47][RuntimePageImpl-16][INFO]: clz instrumented: nl/comp/portaal/tools/JournalArticleTool

But they are not shown more than this en definitely not in any trace ?


BTW thousands off these entries are cluttering my apm logs 
  1. [02 Jun 2017 20:41:52][ajp-nio-8009-exec-48][WARNING]: PreparedQuery not found in PreparedQueryStore. Attempt by reflection: true

Hope some one can elevate me.

Greetings,
Corné


BTW: Vendor class i am stuck on is here;
https://github.com/liferay/liferay-portal/blob/6.2.x/portal-service/src/com/liferay/portal/kernel/servlet/PortletServlet.java

See atachment for results

                New to ADManager Plus?

                  New to ADSelfService Plus?