Skip to content

Commit a6a9b11

Browse files
Merge pull request #19 from luadotsh/feat/sentry
feat: added sentry
2 parents 00f6208 + d72f34c commit a6a9b11

File tree

7 files changed

+6112
-5559
lines changed

7 files changed

+6112
-5559
lines changed

.env.example

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,4 +63,7 @@ AWS_DEFAULT_REGION=us-east-1
6363
AWS_BUCKET=
6464
AWS_USE_PATH_STYLE_ENDPOINT=false
6565

66+
SENTRY_LARAVEL_DSN=
67+
SENTRY_TRACES_SAMPLE_RATE=1.0
68+
6669
VITE_APP_NAME="${APP_NAME}"

bootstrap/app.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
use Illuminate\Foundation\Application;
66
use Illuminate\Foundation\Configuration\Exceptions;
77
use Illuminate\Foundation\Configuration\Middleware;
8+
use Sentry\Laravel\Integration;
89
use Illuminate\Http\Request;
910

1011
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
@@ -42,6 +43,8 @@
4243
]);
4344
})
4445
->withExceptions(function (Exceptions $exceptions) {
46+
Integration::handles($exceptions);
47+
4548
// Handle 500 Internal Server Error, 503 Service Unavailable, etc.
4649
$exceptions->render(function (NotFoundHttpException $e, Request $request) {
4750
if (in_array($e->getStatusCode(), [500, 503, 403, 404])) {

composer.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,13 @@
88
"php": "^8.2",
99
"inertiajs/inertia-laravel": "^1.0",
1010
"laravel/cashier": "^15.4",
11-
"laravel/framework": "^11.9",
11+
"laravel/framework": "^11.34",
1212
"laravel/horizon": "^5.29",
1313
"laravel/reverb": "^1.0",
1414
"laravel/socialite": "^5.16",
1515
"laravel/tinker": "^2.9",
1616
"league/flysystem-aws-s3-v3": "^3.0",
17+
"sentry/sentry-laravel": "^4.10",
1718
"simplesoftwareio/simple-qrcode": "^4.2",
1819
"spatie/color": "^1.6",
1920
"spatie/laravel-medialibrary": "^11.9",
@@ -29,7 +30,7 @@
2930
"laravel/telescope": "^5.2",
3031
"mockery/mockery": "^1.6",
3132
"nunomaduro/collision": "^8.1",
32-
"pestphp/pest": "^3.4",
33+
"pestphp/pest": "^3.6",
3334
"pestphp/pest-plugin-laravel": "^3.0"
3435
},
3536
"autoload": {

0 commit comments

Comments
 (0)