Quantcast
Channel: Active questions tagged symfony4 - Stack Overflow
Viewing all articles
Browse latest Browse all 3924

Invalid configuration for path "sentry.options.integrations.0": Expecting service reference, got ""Sentry\\Integration\\IgnoreErrorsIntegration""

$
0
0

I'm setting sentry in Symfony4.4 to ignore some types of exceptions. Following the doc, I set config.yml this way:

sentry:    dsn: "%sentry%"    register_error_listener: true    options:        attach_stacktrace: true        integrations:            - 'Sentry\Integration\IgnoreErrorsIntegration'

and I added to services.yml

Sentry\Integration\IgnoreErrorsIntegration:        arguments:            $options:                ignore_exceptions:                    - RuntimeException

The exceptions are logged but when I added the ignore configuration I got this error

Invalid configuration for path "sentry.options.integrations.0": Expecting service reference, got ""Sentry\\Integration\\IgnoreErrorsIntegration"

Viewing all articles
Browse latest Browse all 3924

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>