Laravel Instruments
, (*1)
This project aim to easily add metric tracking to your Laravel 5 applications. Three drivers are currently supported: StatsD, Log and Null. The following metrics are currently tracked:, (*2)
- Request
- Response
- Browser timing (first byte, ready and load)
- SQL Queries
- Authentifications
- Mail
- Queue
- Cache
Installation
Require this package with composer:, (*3)
composer require eXolnet/laravel-instruments
After updating composer, add the ServiceProvider to the providers array in config/app.php:, (*4)
Exolnet\Instruments\InstrumentsServiceProvider::class
Configure the library through your .env file:, (*5)
INSTRUMENTS_DRIVER=statsd
STATSD_HOST=127.0.0.1
STATSD_PORT=8125
Or publish the package configuration with the following command:, (*6)
$ php artisan vendor:publish --provider="Exolnet\Instruments\InstrumentsServiceProvider"
Testing
To run the phpUnit tests, please use:, (*7)
bash
$ composer test, (*8)
Contributing
Please see CONTRIBUTING and CODE OF CONDUCT for details., (*9)
Security
If you discover any security related issues, please email security@exolnet.com instead of using the issue tracker., (*10)
Credits
License
Copyright © eXolnet. All rights reserved., (*11)
This code is licensed under the MIT license.
Please see the license file for more information., (*12)