A helper package to utilize the Cron Job monitoring tool from Sentry.
Note Sentry Cron Job monitoring is still in beta
You can install the package via composer:
composer require modernmcguire/sentry-cron-monitoring-laravel
Then publish the config file with:
php artisan vendor:publish --provider="Modernmcguire\SentryCronMonitoringLaravel\SentryCronMonitoringLaravelServiceProvider"
Add the following macro to your scheduled job that you would like to track.
$schedule->call(function () {
DB::table('recent_users')->delete();
})
->monitor('monitor-id-from-sentry')
->daily();
This will add the before
and after
calls necessary to track the job in Sentry.
composer test
Please see CHANGELOG for more information what has changed recently.
Please see CONTRIBUTING for details.
If you discover any security related issues, please email ben@modernmcguire.com instead of using the issue tracker.
The MIT License (MIT). Please see License File for more information.
This package was generated using the Laravel Package Boilerplate.