AnsweredAssumed Answered

How to write a Custom NameFormatter for StalledMethodTracer - I get "the tracer does not support the threshold parameter" errors

Question asked by StefanSiegl on Aug 18, 2014
Latest reply on Aug 19, 2014 by StefanSiegl



I need to add a custom nameformatter to a StalledMethodTracer. I tried to do that the following way:


SetTracerClassMapping: SOAPStalledMethodTracer com.wily.introscope.agent.trace.StalledMethodTracer com.wily.introscope.probebuilder.validate.ResourceNameValidator

SetTracerParameter: SOAPStalledMethodTracer nameformatter ***.nameformatter.soap.SOAPNameFormatter (where *** is the package name)

SetTracerParameter: SOAPStalledMethodTracer reentrancy instance


I then put the tracer on a method:

TraceComplexMethodsWithThresholdIfFlagged: MYFLAG SOAPStalledMethodTracer "TEST|Frontends|ByService|{Service}:Slow" 500


And then get the following error:

[ERROR] [IntroscopeAgent.Agent] Introscope AutoProbe will not run because the provided directives files are not valid: Can't proceed because (/opt/IBM/WebSphere/AppServer/wily/config/instrumentation/***.pbd:23) the tracer does not support the threshold parameter. Please restart with valid directives.


It seems as if my tracer extension is not recognized to deal with thresholds. Can you point me to a solution?


Thank you,