New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

defstudio/laravel-clog-detector

A slow response time detector for Laravel
6,257
Install
composer require defstudio/laravel-clog-detector
Latest Version:v1.0.0
PHP:^8.0
Laravel:8 · 9 · 10
License:MIT
Last Updated:Jul 12, 2024
Links: GitHub  ·  Packagist
Maintainer: fabio.ivona

Laravel Clog Detector

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads License

A slow responses detector for Laravel.

Installation

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,
    ],
];

Usage

[TODO]

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Security Vulnerabilities

Please review our security policy on how to report security vulnerabilities.

Credits

License

The MIT License (MIT). Please see License File for more information.

Related Packages

defstudio/laravel-telegram-log

Telegram log channel for Laravel

1,350 0
defstudio/telegraph

A laravel facade to interact with Telegram Bots

416,457 820
defstudio/filament-column-length-limiter

Limit Filament columns length showing a tooltip when text exceeds

10,435 12
defstudio/actions

Helpers methods for Laravel Actions

10,159 11
defstudio/wired-tables

Laravel Livewire Datatables

7,894 2

Version History

Version Released PHP Laravel License
v1.0.0 ^8.0 ^8.0|^9.0|^10.0 MIT
v0.2.0 ^8.0 ^8.0|^9.0 MIT
v0.1.0 ^8.0 ^8.0 MIT
v0.0.7 ^8.0 ^8.0 MIT
v0.0.6 ^8.0 ^8.0 MIT