ssi-anik / elastic-apm-php

elastic/apm-agent-php wrapper to push PHP application transactions to APM Server
https://bit.ly/300vUkX
MIT License
16 stars 9 forks source link

lumen #7

Closed mnbp1371 closed 3 years ago

mnbp1371 commented 3 years ago

I installed this package by composer but the below error occurred:

Class apm-agent does not exist.

Is there any requirements for this package? Or what should I do for config that?

ssi-anik commented 3 years ago

Firstly, did you register the provider? do you have the agent extension installed on your host machine? Secondly, due to the breaking changes in the elastic apm agent, it'll break. it will not be maintained due to the breaking changes. after the agent become stable, will work on it hopefully.

mnbp1371 commented 3 years ago

I had registered the provider in app.php and i had installed the apm-agent-php from https://github.com/elastic/apm-agent-php/releases/tag/v1.0.0

Now I get the following error: Call to undefined method Elastic\Apm\Impl\Span::setLabel()

This seems to be a problem with your package. Do I guess right?

tanks

ssi-anik commented 3 years ago

Firstly, the package was unmaintained due to the instability of the dependency. and check the installation process. https://www.elastic.co/guide/en/apm/agent/php/current/setup.html

mnbp1371 commented 3 years ago

seyed php agent extention works and sends all the reports to the apm system but your package gives the error I told you about. It should be noted that I am using the lumen.

ssi-anik commented 3 years ago

If you missed the readme, please go through it again. Thanks. image https://github.com/ssi-anik/elastic-apm-php/blob/03ddc1c2283474394a309dd42e0d5de7aa9cccf8/readme.md