ksimenic / laravel-vapor-new-relic

0 stars 0 forks source link

Doesn't work with Laravel Octane. #1

Open leonardocaldas opened 1 year ago

leonardocaldas commented 1 year ago

Hey @ksimenic, I've tried your solution, but I don't think it considers the possibility of running Laravel Octane together with Vapor.

I can confirm it works without Octane, but it would be nice if it was possible to run with Octane as well.

ksimenic commented 1 year ago

Hello @leonardocaldas. This might be a long shot, but are you maybe looking at "non-web" transactions in New Relic UI (Transaction type -> Non-web)?

image
leonardocaldas commented 1 year ago

Hey @ksimenic, I've already checked that option, when Octane is enabled, no Web data is sent to NewRelic, my guess is that because Octane runs on top of RoadRunner/Swoole, somehow the NewRelic's agent is not able to scan/listen those executions, and as soon as I disable Octane, it starts working again.

Also, because of PHP's nature, where in every request the code has to be fully loaded again and again to be able to handle the request, I believe the NewRelic's agent somehow depends on this bootstrap process to identify new requests are coming in and to send data to their servers.