mikegarde / laravel-datadog-batched
Installs: 8 616
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: >=5.6
- datadog/php-datadogstatsd: ^1.4
- doctrine/orm: ^2.5
- illuminate/support: ^5.1
- laravel-doctrine/orm: ^1.0
Requires (Dev)
- phpunit/phpunit: 5.7.27 - 8
This package is auto-updated.
Last update: 2024-11-15 01:10:21 UTC
README
Using Composer/Packagist
composer install laravel-datadog-batched
config/app.php
return [ 'providers' => [ MikeGarde\LaravelDataDogBatched\DataDogServiceProvider::class, ], 'aliases' => [ 'DataDog' => MikeGarde\LaravelDataDogBatched\DataDogFacade::class, ], ];
app/Http/Kernel.php
protected $middleware = [ \MikeGarde\LaravelDataDogBatched\DataDogMiddleware::class, ];
config/datadog.php
php artisan vendor:publish --provider="MikeGarde\LaravelDataDogBatched\DataDogServiceProvider"
Review the config and name the prefix
appropriately
Tip: enable or disable based on environment
return [ 'enabled' => (env('APP_ENV') === 'prod' || env('APP_ENV') === 'qa'), 'prefix' => 'app.APIv2', ];
config/doctrine.php
If desired to log SQL interactions and duration
return [ 'logger' => \MikeGarde\LaravelDataDogBatched\FileLogger::class, ];