Hi,
We have issue on application where during transaction sometime data at some point get resettled to zero and we want to monitor that using Dynatrace. Developer has given few methods which he wants to monitor on production with method arguments and problem is that these methods has object as parameter because of which I’m not able to capture actual values of object, then I tried with getter/setter method but it’s get called multiple times which impacts PP size.
Please suggest if it’s possible to capture values using object as parameter in Dynatrace or how I can use DT to resolve this issue.
Amol
Answer by Rob V. ·
Amol,
If there is a toString rendering of that object, dT will use that. But if not you will not see information internal to that object. We do not do deep object access in the context of method arguments or return values.
There is one trick I've used though, since you seem to have control of the code. Create a dummy method that just takes one argument, and has an empty do-nothing body. In the method you are trying to troubleshoot, simply call the dummy method with a string or numeric rendering of the data in the object of interest. You can put a sensor on the dummy method and capture its parameter.
Rob
JANUARY 15, 3:00 PM GMT / 10:00 AM ET