Skip to content

Commit

Permalink
Update the Sentry recipe
Browse files Browse the repository at this point in the history
  • Loading branch information
javiereguiluz committed Jan 11, 2024
1 parent e7b4023 commit 35ddf1c
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions sentry/sentry-symfony/4.6/config/packages/sentry.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
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: true

# 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
Expand All @@ -13,3 +18,9 @@ when@prod:
# 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 }

0 comments on commit 35ddf1c

Please sign in to comment.