fix: sentry config optimization

This commit is contained in:
Jérémy Munsch 2026-10-27 12:25:38 +01:00
parent 639a8459d2
commit c8eba4a932
No known key found for this signature in database
GPG key ID: 2AAECDA6B7330F91

View file

@ -61,5 +61,5 @@ return [
// @see: https://docs.sentry.io/platforms/php/guides/laravel/configuration/options/#traces-sample-rate.
'traces_sample_rate' => env('SENTRY_TRACES_SAMPLE_RATE') === null ? null : (float) env('SENTRY_TRACES_SAMPLE_RATE'),
'before_send' => ExceptionsHelper::sentryEventHandler(...),
'before_send' => [ExceptionsHelper::class, 'sentryEventHandler'],
];