I understand that you can right click a method and create a measure on the fly, then for next click through, you will see the argument value after the hot sensor deployment. You can also see the method signature when the argument value show up in next invocation. My question is can we display all the argument values during this process instead of try and error?
Another elated question: after I created a measure directly from a method and then modify it, seems not effective, do I need to delete the measure and re-create it by choosing different argument? I assume I do not need to restart the dT server or application when "delete/edit" a measure b/c the point to have a hot deployment is to avoid restart.
Thanks!
Answer by Dong L. ·
Never mind, figured out, I have to check the "capture" checkout in the edit mode of the measure.
Just wanted to add to this as it might be interesting for others as well:
In the Method Sensor Rule for a specific method you can check the box "Capture" for each individual argument. dynaTrace can capture primitive types and String values. Complex objects are also treated as strings as we capture the output of the toString() method. Keep in mind that we have a limitation on argument capturing. We only allow 4 parameters of the same type per method, e.g: 4 ints, 4 doubles, 4 strings (including complex objects)
The Method Sensor Rule also allows you to capture the Return Value. There is a check box on the bottom of the Method Sensor Rule Dialog
One additional option you have is in the Sensor Placement section for your Agent Groups (Tiers). There you have the option "Capture Strings automatically". If you check this box dynaTrace will automatically capture the first 3 string values of the first 3 method arguments of EVERY instrumented method. This is great for "exploration" - but - keep in mind that this captures a lot of data that you probably dont need. So - after you have figured out which arguments you really want to capture uncheck this box and configure the paramters in your method sensor rules
Hope this helps
Andi
JANUARY 15, 3:00 PM GMT / 10:00 AM ET