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

Scheduled task tracing

Open jameshulse opened this issue 1 year ago • 3 comments

Problem Statement

I would like to have traces for when scheduled commands run via the Console\Kernel. We have some heavy jobs that run each hour and they have started failing. Sentry currently shows that the errors are related but doesn't know how.

image

Solution Brainstorm

The Laravel scheduler has start/finish events (see: https://laravel.com/docs/10.x/scheduling#events) which a new Sentry tracing feature should be able to hook into to create a transaction.

I will potentially attempt this myself in the mean time, and if I make progress then I am happy to try and contribute back.

jameshulse avatar Feb 15 '24 03:02 jameshulse

any progress on this, @jameshulse ? I am also very interested in this feature and might be able to pitch in

rzv-me avatar Jun 12 '24 17:06 rzv-me

We're already discussing this, we might have some more news next week 🙂

cleptric avatar Jun 12 '24 17:06 cleptric

Fantastic @cleptric. I'm afraid I didn't get much further than this @rzv-me - hopefully the sentry team will figure it out!

jameshulse avatar Jun 12 '24 23:06 jameshulse