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
- nl/comp/portaal/controller/ShowPortletController : :
- nl/comp/portaal/tools/JournalArticleTool : getFieldValue :
- com/liferay/portlet/asset/service/.* : :
- com/liferay/portal/.* : :
- nl/comp/.* : :
I can tell that the
custom_instrumentation.conf file is picked up
- [02 Jun 2017 12:45:57][main][INFO]: BackgroundSequenceConfig initialized.
- [02 Jun 2017 12:45:57][main][INFO]: Configuration file listener initialized successfully.
- [02 Jun 2017 12:45:59][main][INFO]: SSLContext initialized successfully.
- [02 Jun 2017 12:45:59][main][INFO]: APM Insight agent initialized successfully.
- [02 Jun 2017 12:45:59][main][INFO]: All static interceptors loaded successfully.
- [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
- ethodMatcher:ManyMethodMatcher[MethodMatcher[\Q:\E [.*]]|], ]to interceptor factory.
- [02 Jun 2017 12:45:59][main][INFO]: Adding custom interceptor: CiD-nl/comp/portaal/controller/ShowPortletController[ClassMatcher:ClassMatcher[nl/comp/portaal/controller/ShowPortletCo
- ntroller], ExcludeMethodMatcher:null, IncldueMethodMatcher:ManyMethodMatcher[MethodMatcher[\Q:\E [.*]]|], ]to interceptor factory.
- [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
- deMethodMatcher:null, IncldueMethodMatcher:ManyMethodMatcher[MethodMatcher[\QgetFieldValue:\E [.*]]|], ]to interceptor factory.
- [02 Jun 2017 12:45:59][main][INFO]: All custom interceptors loaded successfully
- [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
- [02 Jun 2017 12:48:25][localhost-startStop-2][INFO]: clz instrumented: nl/comp/portaal/controller/ShowPortletController
- [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
- [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 ADSelfService Plus?