Hello
Can OnaAgent capture Variable form return/argument value ?
I tried create requestAttribute by return valuen.
as an object I tried to take the necessary variable
it looks like this
But agent said that accessor faild
I tried capture all variables - it is work, but string is long
Solved! Go to Solution.
You can only specify methods without values for the deep object access. Thus you can only do the .getVariables() in your case. If you can't modify your code, then you will need to find a more suitable method for the request attribute capture. Maybe in the code where the variable is generated.
If you can modify the code, you can leverage the OneAgent SDK to return push the request attribute value.
ок, thank you.
Do you know maybe Dynatrace have RFE for capture variable of object ?
If the information is stored as object attribute you can reference it by using "this" and then use the attribute value or a method to get it.
Albeit deep object access with arguments is technically doable, it's very dangerous from both functional and especially security perspective. Even with methods without arguments you can break application as the calls may change the object state.
Featured Posts