08 Oct 2018 05:24 AM - last edited on 09 Dec 2021 07:28 AM by MaciejNeumann
I have questions about PHP monitoring with Dynatrace. Everything is working fine except one thing. I thing it's because of how framework is working. I actually don't see executions of methods from Controller. There is index.php execution and after that PDO statements or remote calls. It's not the problem because performance monitoring is working fine. The problem is if I'm trying to define custom services. Because the file with controller is not directly called, such rules doesn't actually work. Is it any workaround for this?
I don't think there is a way around this for you. As you probably noticed in the Dynatrace documentation currently for PHP you can only specify entry points manually. In order to do this, you need to reference the file that contains the methods that you want to instrument.
Actually there is no problem with picking entry points. There also is search option like in java and .Net available. The problem is that methods from controller that are responsible for loading data and view/api endpoint are not called. (According to what I see in Purepaths). It looks like code from those methods is load in index.php file by framework and I see incomplete stack trace. In this case Dynatrace mechanism doesn’t work for defining entry points. Because methods which are properly defined are not executed in a way Dynatrace is looking for.
Has this ever been fixed? I am also using Laravel and am trying Dynatrace out.
I defined custom services for my methods, and broswed to URL calling these methods, but doesn't see anything related to them in the PurePath.
If this is not possible to see, then you shouldn't say that Laravel is supported on Dynatrace.