Somehow, requests made to my Laravel application from my browser (accessed from my host machine) are not getting recorded in my Elastic Cloud APM instance. I would like to notify you that Transactions are getting recorded if I run any Command from the CLI of my container. For example, if run php artisan config:clear, then the info is accurately recorded in my Cloud instance:
What version of the agent are you using? It looks like you are using an older version of the APM Agent. Version 1.5.x/16.x onwards also saves the artisan command that is being run. So not only artisan.
PDO/MySQL queries are measured out of the box within the transaction. The handle itself is not processed as a span at this moment unless there is an error. Than the handle() command will be shown in the error with the stack trace.
We currently have auto instrumentation at Laravel for queries, errors, curl commands. We are working on a feature called inferred spans, where more auto instrumentation for slow methods is being traced.
That being said, do you have any output when you set this into a view?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.