A slow responses detector for Laravel.
You can install the package via composer:
composer require defstudio/laravel-clog-detector
You can publish the config file with:
php artisan vendor:publish --tag="laravel-clog-detector-config"
This is the contents of the published config file:
return [
'slow_responses' => [
/*
* Enables slow responses reporting
*/
'report' => env('SLOW_RESPONSES_REPORT', false),
/*
* Max http request handling time expressed in seconds.
*/
'threshold' => env('SLOW_RESPONSES_MAX_SECS', 5),
/*
* Route names that will not report a long execution time.
*/
'ignored_routes' => [
],
/*
* Urls that will not report a long execution time.
*/
'ignored_urls' => [
],
/*
* The middleware to be used to check response times.
* it must implement DefStudio\ClogDetector\Contracts\MeasureHttpResponseTime
*/
'middleware' => MeasureHttpResponseTime::class,
],
];
[TODO]
composer test
Please see CHANGELOG for more information on what has changed recently.
Please see CONTRIBUTING for details.
Please review our security policy on how to report security vulnerabilities.
The MIT License (MIT). Please see License File for more information.