13 Jan 2021 01:38 PM - last edited on 10 Jun 2021 12:50 PM by MaciejNeumann
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
Solved! Go to Solution.
13 Jan 2021 08:01 PM
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.