Skip to content

Commit b3bb762

Browse files
authored
Sentry (#65)
* Install `sentry/sentry-laravel` * Configure Sentry * Configure Sentry for JS * Update .env.example * Update .env.example * Update .env.example
1 parent e887734 commit b3bb762

File tree

7 files changed

+491
-67
lines changed

7 files changed

+491
-67
lines changed

.env.example

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,4 +52,9 @@ MAIL_ENCRYPTION=null
5252
MAIL_FROM_ADDRESS="admin@laravel-inertia-template.test"
5353
MAIL_FROM_NAME="${APP_NAME}"
5454

55+
SENTRY_LARAVEL_DSN=""
56+
SENTRY_TRACES_SAMPLE_RATE=0.1
57+
5558
VITE_APP_NAME="${APP_NAME}"
59+
VITE_APP_ENV="${APP_ENV}"
60+
VITE_SENTRY_DSN_PUBLIC=""

bootstrap/app.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
use Illuminate\Foundation\Application;
44
use Illuminate\Foundation\Configuration\Exceptions;
55
use Illuminate\Foundation\Configuration\Middleware;
6+
use Sentry\Laravel\Integration;
67

78
return Application::configure(basePath: dirname(__DIR__))
89
->withRouting(
@@ -21,5 +22,5 @@
2122
]);
2223
})
2324
->withExceptions(function (Exceptions $exceptions) {
24-
//
25+
Integration::handles($exceptions);
2526
})->create();

bun.lockb

5.35 KB
Binary file not shown.

composer.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
"laravel/sanctum": "^4.0",
1515
"laravel/tinker": "^2.9",
1616
"predis/predis": "^2.2",
17+
"sentry/sentry-laravel": "^4.5",
1718
"spatie/laravel-permission": "^6.7",
1819
"tightenco/ziggy": "^1.8"
1920
},

0 commit comments

Comments
 (0)