I need to cron job log in sentry using laravel
Call sentry log method:
$this->sentryCronJobLog([
'affected_rows'=> $affectedRows,
'status' => 'success'
]);
this is my method to logged in sentry:
public function sentryCronJobLog($data){
if (app()->bound('sentry')) {
\Sentry\configureScope(function (Scope $scope)use ($data): void {
$scope->setTag('status', $data['status']);
$scope->setTag('affected_rows', $data['affected_rows']);
$scope->setTag('time',\Carbon\Carbon::now()->format('Y-m-d h:i a'));
});
}
}
In this way, I have unable to create a log in sentry Performance.
from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/3mipnex
via IFTTT
Your Blog is amazing. If you want to know that HOW TO SETUP A CRON JOB then,
RépondreSupprimerClick here for more information:
HOW TO SETUP A CRON JOB