Install the sentry Laravel SDK:
composer require sentry/sentry-laravel
Publish the config file:
php artisan sentry:publish --dsn=YOUR_DSN
This adds to your .env file:
SENTRY_LARAVEL_DSN — Your GlitchTip DSNSENTRY_TRACES_SAMPLE_RATE — Transaction sampling rate (use 0.01 for 1%)Verify your setup with a test route:
Route::get('/debug-glitchtip', function () {
throw new Exception('Test GlitchTip error!');
});
SENTRY_TRACES_SAMPLE_RATE low in production. Each HTTP request is a transaction — even 1% gives useful performance data without excessive storage.config/sentry.php.