Skip to content

Commit

Permalink
feat(monitoring): add sentry basic conf
Browse files Browse the repository at this point in the history
  • Loading branch information
jonathanMelly committed Feb 20, 2023
1 parent f02056f commit d4d111e
Show file tree
Hide file tree
Showing 5 changed files with 1,521 additions and 275 deletions.
4 changes: 3 additions & 1 deletion app/Exceptions/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ class Handler extends ExceptionHandler
public function register()
{
$this->reportable(function (Throwable $e) {
//
if (app()->bound('sentry')) {
app('sentry')->captureException($e);
}
});
}
}
1 change: 1 addition & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
"maatwebsite/excel": "^3.1",
"phpmailer/phpmailer": "^6.6",
"psr/simple-cache": "1.0",
"sentry/sentry-laravel": "^3.2",
"socialiteproviders/microsoft-azure": "^5.1",
"spatie/laravel-backup": "^8.1",
"spatie/laravel-permission": "^5.5"
Expand Down
Loading

0 comments on commit d4d111e

Please sign in to comment.