Compare commits

...

1 Commits

Author SHA1 Message Date
Brock H Caldwell
9a660279be fix: sentry 2025-11-05 00:12:32 -06:00

View File

@@ -1,36 +1,25 @@
when@prod: when@prod:
sentry: sentry:
dsn: '%env(SENTRY_DSN)%' register_error_listener: false # Disables the ErrorListener to avoid duplicated log in sentry
options: register_error_handler: false # Disables the ErrorListener, ExceptionListener and FatalErrorListener integrations of the base PHP SDK
# Add request headers, cookies, IP address and the authenticated user
# see https://docs.sentry.io/platforms/php/data-management/data-collected/ for more info services:
# send_default_pii: true # (Optionally) Configure the breadcrumb handler as a service (needed for the breadcrumb Monolog handler)
ignore_exceptions: Sentry\Monolog\BreadcrumbHandler:
- 'Symfony\Component\ErrorHandler\Error\FatalError' arguments:
- 'Symfony\Component\Debug\Exception\FatalErrorException' - '@Sentry\State\HubInterface'
# - !php/const Monolog\Logger::INFO # Configures the level of messages to capture as breadcrumbs
# # 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: monolog:
handlers: handlers:
# # Use this only if you don't want to use structured logging and instead receive # (Optionally) Register the breadcrumb handler as a Monolog handler
# # certain log levels as errors. sentry_breadcrumbs:
# sentry:
# type: sentry
# level: !php/const Monolog\Logger::ERROR
# 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
sentry_logs:
type: service type: service
id: Sentry\SentryBundle\Monolog\LogsHandler name: sentry_breadcrumbs
# id: Sentry\Monolog\BreadcrumbHandler
services: # Register the handler as a Monolog handler to capture messages as events
Sentry\SentryBundle\Monolog\LogsHandler: sentry:
arguments: type: sentry
- !php/const Monolog\Logger::INFO level: !php/const Monolog\Logger::ERROR # Configures the level of messages to capture as events
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 in reported messages