Skip to content

Commit

Permalink
Merge pull request #19 from luadotsh/feat/sentry
Browse files Browse the repository at this point in the history
feat: added sentry
  • Loading branch information
paulocastellano authored Dec 2, 2024
2 parents 00f6208 + d72f34c commit a6a9b11
Show file tree
Hide file tree
Showing 7 changed files with 6,112 additions and 5,559 deletions.
3 changes: 3 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,7 @@ AWS_DEFAULT_REGION=us-east-1
AWS_BUCKET=
AWS_USE_PATH_STYLE_ENDPOINT=false

SENTRY_LARAVEL_DSN=
SENTRY_TRACES_SAMPLE_RATE=1.0

VITE_APP_NAME="${APP_NAME}"
3 changes: 3 additions & 0 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
use Illuminate\Foundation\Application;
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Sentry\Laravel\Integration;
use Illuminate\Http\Request;

use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
Expand Down Expand Up @@ -42,6 +43,8 @@
]);
})
->withExceptions(function (Exceptions $exceptions) {
Integration::handles($exceptions);

// Handle 500 Internal Server Error, 503 Service Unavailable, etc.
$exceptions->render(function (NotFoundHttpException $e, Request $request) {
if (in_array($e->getStatusCode(), [500, 503, 403, 404])) {
Expand Down
5 changes: 3 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,13 @@
"php": "^8.2",
"inertiajs/inertia-laravel": "^1.0",
"laravel/cashier": "^15.4",
"laravel/framework": "^11.9",
"laravel/framework": "^11.34",
"laravel/horizon": "^5.29",
"laravel/reverb": "^1.0",
"laravel/socialite": "^5.16",
"laravel/tinker": "^2.9",
"league/flysystem-aws-s3-v3": "^3.0",
"sentry/sentry-laravel": "^4.10",
"simplesoftwareio/simple-qrcode": "^4.2",
"spatie/color": "^1.6",
"spatie/laravel-medialibrary": "^11.9",
Expand All @@ -29,7 +30,7 @@
"laravel/telescope": "^5.2",
"mockery/mockery": "^1.6",
"nunomaduro/collision": "^8.1",
"pestphp/pest": "^3.4",
"pestphp/pest": "^3.6",
"pestphp/pest-plugin-laravel": "^3.0"
},
"autoload": {
Expand Down
Loading

0 comments on commit a6a9b11

Please sign in to comment.