atatus / atatus-octane
Atatus APM monitoring for Octane
Installs: 17 905
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/atatus/atatus-octane
Requires
- php: >=7.2 <9
- illuminate/console: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/contracts: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
- illuminate/support: ^5.5|^6.0|^7.0|^8.0|^9.0|^10.0|^11.0
Requires (Dev)
- orchestra/testbench: ^6.25.1|^7.22|^8.0|^9.0
README
The Atatus Laravel Octane Middleware enables the automatic instrumentation of API requests, capturing them and sending data to Atatus for analysis.
Requirements
- PHP >= 7.2.0
- Laravel >= 5.5
How to install
Via Composer
composer require atatus/atatus-octane
or add atatus/atatus-octane to your composer.json file accordingly.
How to use
Add to Middleware
To monitor web requests, you can attach the WebRequestMonitoring middleware within the web and api middleware groups in the App/Http/Kernel.php file as shown below:
// In App/Http/Kernel.php protected $middlewareGroups = [ 'web' => [ ..., \Atatus\Laravel\Octane\Middleware\WebRequestMonitoring::class, ], 'api' => [ ..., \Atatus\Laravel\Octane\Middleware\WebRequestMonitoring::class, ] ]
LICENSE
This package is licensed under the MIT license.