Is there any way to instrument classes in order to allow inspection of their properties when they are passed as arguments to methods? For example, if I had:
... which was then passed in to a method, like "PeopleSearch(Person thisPerson)", is there any way to create filter/split measures based on the values of FirstName or LastName?
Answer by Roman S. ·
Up to version 5.6 you can only capture primitive data types like int, String, float - for complex objects we just call the toString method an capture its return value.
With 6.0 you will have the possibility to define accessors every time you capture a method argument or return value. So for your case you would define the sensor on the PeopleSearch method, capture the thisPerson parameter and use an accessor of getFirstName().
Best, Roman
JANUARY 15, 3:00 PM GMT / 10:00 AM ET