Skip to content

Commit 6cc09c7

Browse files
committed
Update sentry/sentry-symfony recipe
Signed-off-by: Tim Goudriaan <tim@codedmonkey.com>
1 parent 4b242cb commit 6cc09c7

2 files changed

Lines changed: 10 additions & 7 deletions

File tree

config/packages/sentry.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ when@prod:
1010
- 'Symfony\Component\Debug\Exception\FatalErrorException'
1111
#
1212
# # If you are using Monolog, you also need this additional configuration to log the errors correctly:
13-
# # https://docs.sentry.io/platforms/php/guides/symfony/#monolog-integration
13+
# # https://docs.sentry.io/platforms/php/guides/symfony/integrations/monolog/
1414
# register_error_listener: false
1515
# register_error_handler: false
1616
#
@@ -19,18 +19,21 @@ when@prod:
1919
# # Use this only if you don't want to use structured logging and instead receive
2020
# # certain log levels as errors.
2121
# sentry:
22-
# type: sentry
23-
# level: !php/const Monolog\Logger::ERROR
24-
# hub_id: Sentry\State\HubInterface
25-
# fill_extra_context: true # Enables sending monolog context to Sentry
26-
# process_psr_3_messages: false # Disables the resolution of PSR-3 placeholders
22+
# type: service
23+
# id: Sentry\Monolog\Handler
2724
#
2825
# # Use this for structured log integration
2926
# sentry_logs:
3027
# type: service
3128
# id: Sentry\SentryBundle\Monolog\LogsHandler
3229
#
30+
# # Enable one of the two services below, depending on your choice above
3331
# services:
32+
# Sentry\Monolog\Handler:
33+
# arguments:
34+
# $hub: '@Sentry\State\HubInterface'
35+
# $level: !php/const Monolog\Logger::ERROR
36+
# $fillExtraContext: true # Enables sending monolog context to Sentry
3437
# Sentry\SentryBundle\Monolog\LogsHandler:
3538
# arguments:
3639
# - !php/const Monolog\Logger::INFO

symfony.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)