Skip to content

Scheduled task tracing #853

Closed
Closed
@jameshulse

Description

@jameshulse

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.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions