lionmm/sentry-cron-monitoring-laravel
最新稳定版本:0.2.2
Composer 安装命令:
composer require lionmm/sentry-cron-monitoring-laravel
包简介
A helper package to utilize the Cron Job monitoring tool from Sentry
README 文档
README
A helper package to utilize the Cron Job monitoring tool from Sentry.
Warning Sentry Cron Job monitoring is still in beta
Installation
You can install the package via composer:
composer require lionmm/sentry-cron-monitoring-laravel
Then publish the config file with:
php artisan vendor:publish --provider="LionMM\SentryCronMonitoringLaravel\SentryCronMonitoringLaravelServiceProvider"
Usage
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, onSuccess and onFailure calls necessary to track the job in Sentry.
Changelog
Please see CHANGELOG for more information what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security
If you discover any security related issues, please email ben@modernmcguire.com instead of using the issue tracker.
Credits
License
The MIT License (MIT). Please see License File for more information.
统计信息
- 总下载量: 38
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-03-22