Covivo/mobicoop

View on GitHub
api/config/packages/sentry.yaml

Summary

Maintainability
Test Coverage
sentry:
  dsn: "%env(string:SENTRY_DSN)%"
  options:
    environment: "%env(string:APP_ENV)%"
    tags:
      instance: "%env(string:SENTRY_INSTANCE)%"

#    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

# monolog:
#     handlers:
#         sentry:
#             type: sentry
#             level: !php/const Monolog\Logger::ERROR
#             hub_id: Sentry\State\HubInterface

# If you are using MonologBundle prior to v3.7, you need to configure the handler as a service instead:

monolog:
  handlers:
    sentry:
      type: service
      id: Sentry\Monolog\Handler

services:
  Sentry\Monolog\Handler:
    arguments:
      $hub: '@Sentry\State\HubInterface'
      $level: !php/const Monolog\Logger::ERROR