I’m using the SentryBundle to integrate Sentry in my Symfony app.
I don’t want to record “NotFoundExceptions”, so I configured the bundle this way:
sentry:
dsn: '%env(SENTRY_DSN)%'
register_error_listener: false # Disables the ErrorListener
monolog:
error_handler:
enabled: true
level: error
messenger:
enabled: true # flushes Sentry messages at the end of each message handling
capture_soft_fails: true # captures exceptions marked for retry too
options:
environment: '%kernel.environment%'
# release: '%env(VERSION)%' #your app version
excluded_exceptions:
- Symfony\Component\HttpKernel\Exception\NotFoundHttpException
Unfortunately, this seems to be not sufficient as the execptions continue to be logged in Sentry.
What am I doing wrong?