Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add support for Scheduled Tasks monitoring #659

Merged
merged 4 commits into from Mar 16, 2023
Merged

Conversation

cleptric
Copy link
Member

This adds support for our new Cron Monitors feature, to monitor Laravel's Scheduled Tasks.

<?php

namespace App\Console;

use Illuminate\Console\Scheduling\Schedule;
use Illuminate\Foundation\Console\Kernel as ConsoleKernel;

class Kernel extends ConsoleKernel
{
    protected function schedule(Schedule $schedule)
    {
        $schedule->command('emails:send')
            ->everyHour()
            ->sentryMonitor(env('MONITOR_SLUG'));
    }
}

Needs getsentry/sentry-php#1467 to be merged and released first.

Closes #628

@cleptric cleptric self-assigned this Mar 14, 2023
@cleptric cleptric changed the title feat: Add support for Cron Monitoring feat: Add support for Scheduled Tasks monitoring Mar 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scheduled task monitoring
3 participants