Skip to content

Commit

Permalink
Add sentry error monitoring
Browse files Browse the repository at this point in the history
closes #21
  • Loading branch information
joshmanders committed Aug 12, 2024
1 parent 523e2c8 commit a58dedb
Show file tree
Hide file tree
Showing 9 changed files with 8,794 additions and 967 deletions.
5 changes: 3 additions & 2 deletions bootstrap/app.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
use Illuminate\Foundation\Configuration\Exceptions;
use Illuminate\Foundation\Configuration\Middleware;
use Illuminate\Http\Request;
use Sentry\Laravel\Integration;

return Application::configure(basePath: dirname(__DIR__))
->withRouting(
web: __DIR__ . '/../routes/web.php',
commands: __DIR__ . '/../routes/console.php',
health: '/up',
health: '/healthz',
)
->withMiddleware(function (Middleware $middleware) {
$middleware->trustProxies(
Expand All @@ -25,5 +26,5 @@
]);
})
->withExceptions(function (Exceptions $exceptions) {
//
Integration::handles($exceptions);
})->create();
1 change: 1 addition & 0 deletions bootstrap/providers.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@

return [
App\Providers\AppServiceProvider::class,
\NiftyCo\Support\Session\ServiceProvider::class,
];
8 changes: 7 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,10 @@
"GPL-2.0-or-later"
],
"authors": [
{
"name": "NiftyCo, LLC",
"homepage": "https://aniftyco.com"
},
{
"name": "Josh Manders",
"homepage": "https://x.com/joshmanders",
Expand All @@ -25,6 +29,7 @@
"inertiajs/inertia-laravel": "^1.3",
"laravel/framework": "^11.9",
"laravel/tinker": "^2.9",
"sentry/sentry-laravel": "^4.7",
"tightenco/ziggy": "^2.3"
},
"require-dev": {
Expand All @@ -41,7 +46,8 @@
"psr-4": {
"App\\": "app/",
"Database\\Factories\\": "database/factories/",
"Database\\Seeders\\": "database/seeders/"
"Database\\Seeders\\": "database/seeders/",
"NiftyCo\\Support\\": "src/"
}
},
"autoload-dev": {
Expand Down
Loading

0 comments on commit a58dedb

Please sign in to comment.