Hi,
I have an instrumentation need, where in same method is being called twice as part of execution. I would like to retain some data between these calls for my metric computation.
Let me give a pseudo code for example.
public void doSomeActivity(){
//some initilization code here.
//first callto setStatus method.
setStatus("STARTED");
//do some more business logic process, heavy lifting work.
//second call to setStatus method.
setStatus("COMPLETE");
//some more light steps here.
}
I'm trying to instrument "setStatus()" method, trying to push some data to inspectIt-context upon first call and try to retrive it when method is called for second time as part of same execution.
the instrumentation data element is set for both up-propagation & down-propagation (JVM_LOCAL) with is-tag = false.
But I can see that, inspectIT fails to propagate value set during first call of setStatus method to subsequent call of same method as part of same execution cycle.
Is there a way I can achieve this with in current inspectIT ocelot framework using yaml files it self? Any pointers is highly appreciated.
PS: The new framework of inspectit-ocelot is way better and much more flexible comparared to earlier library. Thank you very much for this great instrumentation technique.
regards
Vijayakumar Udupa.