changing between instrumentation candidates
Hello, team. Thank you for such a wonderful framework.
I'm trying to solve a certain situation and couldn't find anywhere to ask.
Here is the problem.
A Method in AA Class is being instrumented within a certain logic B Method in BB Class is also being instrumented and calls A Method inside it.
So when I execute B Method. instrumentation in B Method is called and then also instrumentation in A Method is called.
The thing is. I'd like to leave the instrumentation in A Method. since this can be called from several other places. But! If it's called from B Method. I DO NOT want to execute the original instrumentation in A Method but want to execute another instrumentation.
I just can't even find where to begin to take care of this problem.
I've gone through FAQ, and Developer guide and User guide(wasn't quite easy to understand). I can't say I've perfectly reviewed and understood the user guide. But so far I couldn't find a hint to take care of this case.
Maybe even a little advice of where to start looking for will be a tremendous help.
Thank you in advance for any advice. Have a nice day.