路径的无效配置“ sentry.options.Integrations.0:期望服务参考,got”,“ sentry \\ intemation \\ intermation \\ ignoreErrorsIntegration”; quot;
我在symfony4.4
中设置sentry
,以忽略某些类型的异常。在文档之后,我设置config.yml
以这种方式:
sentry:
dsn: "%sentry%"
register_error_listener: true
options:
attach_stacktrace: true
integrations:
- 'Sentry\Integration\IgnoreErrorsIntegration'
我添加到services.yml
Sentry\Integration\IgnoreErrorsIntegration:
arguments:
$options:
ignore_exceptions:
- RuntimeException
decestions已记录,但是当我添加忽略配置时,我就会收到此错误
Invalid configuration for path "sentry.options.integrations.0": Expecting service reference, got ""Sentry\\Integration\\IgnoreErrorsIntegration"
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"
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论