cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Can I capture a value for the method without arguments

sergiy_iampol
Newcomer

Hi, I need to see custom string as an method argument:

Similar to this one, but I need to do this for the method without arguments.

I can get needed string via this.blah().blah(), but it doesn't work as a sensor rule, since there are no attributes for that method.

I saw there is such possibility via native ADK, where you can tell Dynatrace capture whatever string you want. I'm wondering if there is similar approach for the Java ADK? (haven't find nothing similar in DynaTraceADKFactory & Tagging...)

p.s. I don't have an access to the source code.

2 REPLIES 2

Hi Sergii,

this isn't possible. Your only chance is to find
some method further up or down the call stack that has this object as a
parameter or return value and instrument that. Best regards,

Peter

sergiy_iampol
Newcomer

As I expected ((

Ok, thanks for answer