diff --git a/app/Listeners/Email/SendInvalidEmailNotification.php b/app/Listeners/Email/SendInvalidEmailNotification.php index 8d5794a88..2ad5e82fe 100644 --- a/app/Listeners/Email/SendInvalidEmailNotification.php +++ b/app/Listeners/Email/SendInvalidEmailNotification.php @@ -44,7 +44,7 @@ class SendInvalidEmailNotification return; } - $type = trans('general.users', 1); + $type = trans_choice('general.users', 1); foreach ($users as $user) { if ($user->cannot('read-notifications')) { diff --git a/config/sentry.php b/config/sentry.php index d6e49e1c9..699066361 100644 --- a/config/sentry.php +++ b/config/sentry.php @@ -2,6 +2,7 @@ return [ + // @see https://docs.sentry.io/product/sentry-basics/dsn-explainer/ 'dsn' => env('SENTRY_LARAVEL_DSN', env('SENTRY_DSN')), // capture release as git sha @@ -81,4 +82,6 @@ return [ 'traces_sampler' => [env('SENTRY_TRACES_SAMPLER_CLASS', 'App\\Exceptions\\Trackers\\Sentry'), 'tracesSampler'], + 'profiles_sample_rate' => env('SENTRY_PROFILES_SAMPLE_RATE') === null ? null : (float) env('SENTRY_PROFILES_SAMPLE_RATE'), + ];