getsentry / sentry-laravel

The official Laravel SDK for Sentry (sentry.io)
https://sentry.io
MIT License
1.23k stars 189 forks source link

Notification and email performance spans and/or breadcrumbs #625

Open stayallive opened 1 year ago

stayallive commented 1 year ago

We could listen to the Illuminate\Mail\Events\MessageSending and Illuminate\Mail\Events\MessageSent events to figure out when an mail was sent and possibly nest the view rendering needed to sent that e-mail neatly underneath a mail span.

We could potentially also add a breadcrumb indicating an email was sent by the framework.

The same goes for notifications (which could trigger e-mails) with Illuminate\Notifications\Events\NotificationSending and Illuminate\Notifications\Events\NotificationSent.

ankurk91 commented 1 year ago

@stayallive Any plans for automated cron job monitoring?

https://docs.sentry.io/product/crons/getting-started/ https://laravel.com/docs/9.x/scheduling#events