sentry-laravel icon indicating copy to clipboard operation
sentry-laravel copied to clipboard

Support Scheduled Task Tracing (Performance Monitoring)

Open zlanich opened this issue 3 years ago • 1 comments

Currently, there is support for tracing HTTP requests (ie. controller requests), and the breadcrumbs, etc within, as well as queued jobs, but there is no support for tracing "Scheduled Tasks" -- ie. I have several tasks that run nightly, some of which take minutes, and I need to keep an eye on them. Is there a plan to support these as well, and set the transaction name as the command name or name provided using the ->name() method?

The config implies there is support for tracing commands, so technically, if all these were commands, it seems it would trace them, but calls like this are not traced:

$schedule->call(function () {
    (new CachePrimer())->primeIfStale();
})
    ->name('cache-primer') // This could be the transaction name, or default of something
    ->everyMinute();

This would be hugely helpful! Thanks!

zlanich avatar Dec 11 '21 00:12 zlanich

This issue has gone three weeks without activity. In another week, I will close it.

But! If you comment or otherwise update it, I will reset the clock, and if you label it Status: Backlog or Status: In Progress, I will leave it alone ... forever!


"A weed is but an unloved flower." ― Ella Wheeler Wilcox 🥀

github-actions[bot] avatar Jan 13 '22 14:01 github-actions[bot]

We're tracking this in https://github.com/getsentry/sentry-laravel/issues/628

cleptric avatar Feb 13 '23 10:02 cleptric