22 lines
620 B
PHP
22 lines
620 B
PHP
<?php
|
|
|
|
use App\Kernel;
|
|
|
|
require_once dirname(__DIR__).'/vendor/autoload_runtime.php';
|
|
|
|
return function (array $context) {
|
|
|
|
if($_ENV['APP_ENV'] == "prod") {
|
|
\Sentry\init([
|
|
'dsn' => $_ENV['SENTRY_DSN'],
|
|
// Specify a fixed sample rate
|
|
'traces_sample_rate' => 1.0,
|
|
// Set a sampling rate for profiling - this is relative to traces_sample_rate
|
|
'profiles_sample_rate' => 1.0,
|
|
// Enable logs to be sent to Sentry
|
|
'enable_logs' => true,
|
|
]);
|
|
}
|
|
return new Kernel($context['APP_ENV'], (bool) $context['APP_DEBUG']);
|
|
};
|