Skip to content

Commit 4e34e20

Browse files
[Feature] Add Sentry (#72)
Co-authored-by: Alex Justesen <[email protected]>
1 parent 14022a1 commit 4e34e20

File tree

5 files changed

+603
-62
lines changed

5 files changed

+603
-62
lines changed

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,7 @@ SCOUT_DRIVER=meilisearch
3737
SCOUT_QUEUE=true
3838
MEILISEARCH_HOST=http://meilisearch:7700
3939
MEILISEARCH_NO_ANALYTICS=false
40+
41+
SENTRY_LARAVEL_DSN=
42+
SENTRY_TRACES_SAMPLE_RATE=1.0
43+
SENTRY_PROFILES_SAMPLE_RATE=1.0

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(
@@ -15,5 +16,5 @@
1516
//
1617
})
1718
->withExceptions(function (Exceptions $exceptions) {
18-
//
19+
Integration::handles($exceptions);
1920
})->create();

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@
1313
"http-interop/http-factory-guzzle": "^1.2",
1414
"laravel/framework": "^12.1.1",
1515
"laravel/scout": "^10.13.1",
16-
"meilisearch/meilisearch-php": "^1.13"
16+
"meilisearch/meilisearch-php": "^1.13",
17+
"sentry/sentry-laravel": "^4.13"
1718
},
1819
"require-dev": {
1920
"fakerphp/faker": "^1.24.1",

0 commit comments

Comments
 (0)