Laravel Octane
Monitor a Laravel application served by Octane
By default Inspector register a shutdown function to transfer data from your application to Inspector at the end of each request lifecycle.
Since Octane runs your application in a long-running process, the data transfer must be performed at the end of the HTTP request life cycle.
So instead of using the normal WebRequestMonitoring
middelware you should attach to your routes the Octane specialized middleware.
Configure the Octane middleware
Register the InspectorOctaneMiddleware
class instead of WebRequestMonitoring
:
Laravel 11
Laravel <= 10
Now Inspector is able to recognize the end of an HTTP requests and monitor your application properly.
Last updated