2024-03-20 17:32:52 +01:00
|
|
|
when@prod:
|
|
|
|
sentry:
|
|
|
|
dsn: '%env(SENTRY_DSN)%'
|
|
|
|
# this hooks into critical paths of the framework (and vendors) to perform
|
|
|
|
# automatic instrumentation (there might be some performance penalty)
|
|
|
|
# https://docs.sentry.io/platforms/php/guides/symfony/performance/instrumentation/automatic-instrumentation/
|
|
|
|
tracing:
|
|
|
|
enabled: false
|
|
|
|
|
|
|
|
# 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
|
|
|
|
register_error_listener: false
|
|
|
|
register_error_handler: false
|
|
|
|
|
|
|
|
monolog:
|
|
|
|
handlers:
|
|
|
|
sentry:
|
|
|
|
type: sentry
|
2024-08-06 11:12:52 +02:00
|
|
|
level: !php/const Monolog\Logger::ERROR
|
2024-03-20 17:32:52 +01:00
|
|
|
hub_id: Sentry\State\HubInterface
|
|
|
|
|
|
|
|
# Uncomment these lines to register a log message processor that resolves PSR-3 placeholders
|
|
|
|
# https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration
|
|
|
|
services:
|
|
|
|
Monolog\Processor\PsrLogMessageProcessor:
|
|
|
|
tags: { name: monolog.processor, handler: sentry }
|