diff --git a/src/SentryIntegration.php b/src/SentryIntegration.php index 441308e..1fd5f89 100644 --- a/src/SentryIntegration.php +++ b/src/SentryIntegration.php @@ -40,8 +40,15 @@ class SentryIntegration { ), ) ); + + self :: $dsn = App::get('sentry.dsn'); + if (!self :: $dsn) { + Log :: trace("SentryIntegration::init(): no DSN configured"); + return; + } + \Sentry\init([ - 'dsn' => App::get('sentry.dsn'), + 'dsn' => self :: $dsn, 'traces_sample_rate' => App::get('sentry.traces_sample_rate', null, 'float'), ]);