Update recipe for sentry

This commit is contained in:
2026-02-05 22:01:40 +01:00
parent 45404db12f
commit c61e203a4d
2 changed files with 11 additions and 8 deletions

View File

@@ -10,7 +10,7 @@ when@prod:
- 'Symfony\Component\Debug\Exception\FatalErrorException' - '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/integrations/monolog/
# register_error_listener: false # register_error_listener: false
# register_error_handler: false # register_error_handler: false
# #
@@ -19,18 +19,21 @@ when@prod:
# # Use this only if you don't want to use structured logging and instead receive # # Use this only if you don't want to use structured logging and instead receive
# # certain log levels as errors. # # certain log levels as errors.
# sentry: # sentry:
# type: sentry # type: service
# level: !php/const Monolog\Logger::ERROR # id: Sentry\Monolog\Handler
# hub_id: Sentry\State\HubInterface
# fill_extra_context: true # Enables sending monolog context to Sentry
# process_psr_3_messages: false # Disables the resolution of PSR-3 placeholders
# #
# # Use this for structured log integration # # Use this for structured log integration
# sentry_logs: # sentry_logs:
# type: service # type: service
# id: Sentry\SentryBundle\Monolog\LogsHandler # id: Sentry\SentryBundle\Monolog\LogsHandler
# #
# # Enable one of the two services below, depending on your choice above
# services: # services:
# Sentry\Monolog\Handler:
# arguments:
# $hub: '@Sentry\State\HubInterface'
# $level: !php/const Monolog\Logger::ERROR
# $fillExtraContext: true # Enables sending monolog context to Sentry
# Sentry\SentryBundle\Monolog\LogsHandler: # Sentry\SentryBundle\Monolog\LogsHandler:
# arguments: # arguments:
# - !php/const Monolog\Logger::INFO # - !php/const Monolog\Logger::INFO

View File

@@ -99,12 +99,12 @@
] ]
}, },
"sentry/sentry-symfony": { "sentry/sentry-symfony": {
"version": "5.6", "version": "5.8",
"recipe": { "recipe": {
"repo": "github.com/symfony/recipes-contrib", "repo": "github.com/symfony/recipes-contrib",
"branch": "main", "branch": "main",
"version": "5.0", "version": "5.0",
"ref": "b6cb4b34429dadecd7187852123be19d628fa37a" "ref": "12f504985eb24e3b20a9e41e0ec7e398798d18f0"
}, },
"files": [ "files": [
"config/packages/sentry.yaml" "config/packages/sentry.yaml"