From c6d564366529eb56e74b6058a8cca20056d65492 Mon Sep 17 00:00:00 2001 From: Hippolyte Thomas Date: Mon, 13 Jan 2025 11:06:47 +0100 Subject: [PATCH] fix: ignore not found exceptions --- config/packages/sentry.yaml | 2 ++ config/services.yaml | 6 ++++++ 2 files changed, 8 insertions(+) diff --git a/config/packages/sentry.yaml b/config/packages/sentry.yaml index 515b63a..fa50378 100644 --- a/config/packages/sentry.yaml +++ b/config/packages/sentry.yaml @@ -4,5 +4,7 @@ when@prod: options: release: !php/const App\Constants::VERSION traces_sample_rate: 0.2 + integrations: + - 'Sentry\Integration\IgnoreErrorsIntegration' tracing: enabled: true diff --git a/config/services.yaml b/config/services.yaml index 59bc8ef..0fddab5 100644 --- a/config/services.yaml +++ b/config/services.yaml @@ -39,3 +39,9 @@ services: arguments: $mongoDbUrl: '%mongodb.url%' $mongoDbName: '%mongodb.name%' + + Sentry\Integration\IgnoreErrorsIntegration: + arguments: + $options: + ignore_exceptions: + - Symfony\Component\HttpKernel\Exception\NotFoundHttpException