modernmcguire/sentry-cron-monitoring-laravel

A helper package to utilize the Cron Job monitoring tool from Sentry
22,405 8
Install
composer require modernmcguire/sentry-cron-monitoring-laravel
Latest Version:0.3.0
PHP:^7.4|^8.0
License:MIT
Last Updated:Jan 19, 2026
Links: GitHub  ·  Packagist
Maintainer: modernben

Sentry Cron Job Monitoring for Scheduled Jobs

Latest Version on Packagist Total Downloads

A helper package to utilize the Cron Job monitoring tool from Sentry.

Note Sentry Cron Job monitoring is still in beta

Installation

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"

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 and after calls necessary to track the job in Sentry.

Testing

composer test

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.

Laravel Package Boilerplate

This package was generated using the Laravel Package Boilerplate.

Related Packages

modernmcguire/mailthief

A Laravel package to catch outbound mail (similar to Mailtrap) that also provide...

9,329 31
doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

637,827,751 9,703
laravel/framework

The Laravel Framework.

589,172,971 34,950
laravel/tinker

Powerful REPL for the Laravel framework.

498,216,183 7,442
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

413,412,504 609

Version History

Version Released PHP Laravel License
0.3.0 ^7.4|^8.0 ^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0 MIT
0.2.0 ^7.4|^8.0 ^7.0|^8.0|^9.0|^10.0 MIT
0.1.1 ^7.4|^8.0 ^7.0|^8.0|^9.0 MIT
0.1.0 ^7.4|^8.0 ^7.0|^8.0|^9.0 MIT