nipwaayoni / elastic-apm-php-agent

PHP Agent for Elastic APM
Other
28 stars 15 forks source link

Use async request to send data to APM #49

Closed dstepe closed 1 year ago

dstepe commented 4 years ago

Look at using \Http\Client\HttpAsyncClient::sendAsyncRequest() rather than \Psr\Http\Client\ClientInterface::sendRequest(). This would allow the Agent to return control without waiting for APM to respond.

tsantos84 commented 4 years ago

I think it'd a very nice addition to the agent. My only concern is that we need to handle exceptions in case of failures when calling sendAsyncRequest

dstepe commented 1 year ago

I don't think this will be easy to implement. The work can remain on the branch to be picked up later if anyone is interested, but at this point, there does not appear to be any real demand anyway.