Add Sentry config

This commit is contained in:
Marijn Doeve
2025-04-29 08:34:55 +02:00
parent 60723657c2
commit ca08df26b2
2 changed files with 13 additions and 9 deletions

View File

@@ -33,6 +33,7 @@ RUN set -eux; \
zip \ zip \
uuid \ uuid \
gd \ gd \
excimer \
; ;
# https://getcomposer.org/doc/03-cli.md#composer-allow-superuser # https://getcomposer.org/doc/03-cli.md#composer-allow-superuser

View File

@@ -1,13 +1,16 @@
when@prod: when@prod:
sentry: sentry:
dsn: '%env(SENTRY_DSN)%' dsn: '%env(SENTRY_DSN)%'
# Add request headers, cookies, IP address and the authenticated user # Add request headers, cookies, IP address and the authenticated user
# see https://docs.sentry.io/platforms/php/data-management/data-collected/ for more info # see https://docs.sentry.io/platforms/php/data-management/data-collected/ for more info
# send_default_pii: true # send_default_pii: true
options:
ignore_exceptions: options:
- 'Symfony\Component\ErrorHandler\Error\FatalError' traces_sample_rate: 1.0
- 'Symfony\Component\Debug\Exception\FatalErrorException' profiles_sample_rate: 1.0
ignore_exceptions:
- 'Symfony\Component\ErrorHandler\Error\FatalError'
- 'Symfony\Component\Debug\Exception\FatalErrorException'
# If you are using Monolog, you also need this additional configuration to log the errors correctly: # If you are using Monolog, you also need this additional configuration to log the errors correctly:
# https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration # https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration