Skip to content

Commit

Permalink
api: update sentry.yaml according to ChangeLog
Browse files Browse the repository at this point in the history
  • Loading branch information
BacLuc committed May 12, 2024
1 parent 6d90935 commit a2aacb5
Showing 1 changed file with 10 additions and 15 deletions.
25 changes: 10 additions & 15 deletions api/config/packages/sentry.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,16 @@ sentry:
register_error_listener: false # Disables the ErrorListener to avoid duplicated log in sentry
options:
environment: '%env(SENTRY_ENVIRONMENT)%'
integrations:
- 'Sentry\Integration\IgnoreErrorsIntegration'

services:
Sentry\Integration\IgnoreErrorsIntegration:
arguments:
$options:
ignore_exceptions:
- Symfony\Component\HttpKernel\Exception\NotFoundHttpException
- Symfony\Component\Routing\Exception\ResourceNotFoundException
- Symfony\Component\Security\Core\Exception\AccessDeniedException
# The following exceptions should not be reported by the API, because they are client errors (400) and should hence be reported by the client.
# For the moment we keep them in, in order to track some frontend issues in Sentry.
# - Symfony\Component\Serializer\Exception\ExtraAttributesException
# - Symfony\Component\Serializer\Exception\UnexpectedValueException
ignore_exceptions:
- 'Symfony\Component\Debug\Exception\FatalErrorException'
- 'Symfony\Component\ErrorHandler\Error\FatalError'
- 'Symfony\Component\HttpKernel\Exception\NotFoundHttpException'
- 'Symfony\Component\Routing\Exception\ResourceNotFoundException'
- 'Symfony\Component\Security\Core\Exception\AccessDeniedException'
# The following exceptions should not be reported by the API, because they are client errors (400) and should hence be reported by the client.
# For the moment we keep them in, in order to track some frontend issues in Sentry.
# - 'Symfony\Component\Serializer\Exception\ExtraAttributesException'
# - 'Symfony\Component\Serializer\Exception\UnexpectedValueException'

monolog:
handlers:
Expand Down

0 comments on commit a2aacb5

Please sign in to comment.