How to use php agent with php

Hello All,

I have installed php 8.0 and configured the php.ini file. I can see the elastic_apm is loaded onto the php extensions.

Now my question is how or where do I get a sample script so that I can send the data from the php to elasticapm observability. Is there a sample code that I can use.

I checked on internet did not find anything useful.

Hey @Anubhav_Jha

The Elastic APM agent should automatically monitor supported applications and frameworks. However, if you want to handle some tasks manually, you can use the public SDK API, documented here:

Thank you actually I saw this documentation. but its not very in deep. was looking for a step by step guide.

if anything like that it can be of help

Thanks,