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

Custom Service - with recursion?

danielbr
Helper

Hi,

We've defined a custom service, based on a .Net method called Execute.
This method is calling itself recursively several times.

The end result is that we see a "request" (=method execution) which contains the sequential recursion execution in its purepath. Is there a way to separate the executions into different "requests"?

Consider this example, monitored by Dynatrace Custom service:

myMethod(int x) {
if( x > 1) {
myMethod(x-1)

}
}

-----------
myMethod(3);

 

How do I get the dynatrace service to show all the executions as separate "requests" rather than one purepath?
i.e:

myMethod - 3
myMethod - 2
myMethod - 1

Is it possible?

Thanks,
Daniel

1 REPLY 1

Julius_Loman
Leader

No, that's unfortunately not possible, I guess mainly for overhead reasons, see here:
https://www.dynatrace.com/support/help/shortlink/custom-services#delegation-suppression

OneAgent suppresses method delegation per service. That is, any calls between two methods of one service are not recorded. If you need to capture such calls you must create a separate custom service for it.
TEMPEST a.s., Slovakia, Dynatrace Master Partner