Files
symfony-flex-recipes-contrib/sentry.sentry-symfony.5.0.json
T
github-action[bot]andgithub-action[bot] dd6529fb54 Update Flex endpoint
2025-04-19 01:54:48 +00:00

61 lines
2.8 KiB
JSON

{
"manifests": {
"sentry/sentry-symfony": {
"manifest": {
"bundles": {
"Sentry\\SentryBundle\\SentryBundle": [
"prod"
]
},
"copy-from-recipe": {
"config/": "%CONFIG_DIR%/"
},
"env": {
"SENTRY_DSN": ""
},
"conflict": {
"symfony/framework-bundle": "<5.4",
"symfony/monolog-bundle": "<3.7"
}
},
"files": {
"config/packages/sentry.yaml": {
"contents": [
"when@prod:",
" sentry:",
" dsn: '%env(SENTRY_DSN)%'",
" # Add request headers, cookies, IP address and the authenticated user",
" # see https://docs.sentry.io/platforms/php/data-management/data-collected/ for more info",
" # send_default_pii: true",
" options:",
" 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:",
"# https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration",
"# register_error_listener: false",
"# register_error_handler: false",
"",
"# monolog:",
"# handlers:",
"# sentry:",
"# type: sentry",
"# level: !php/const Monolog\\Logger::ERROR",
"# 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 }",
""
],
"executable": false
}
},
"ref": "c3decefe8a11a5da43adaf827a6cd66695586113"
}
}
}