为什么我的Laravel Nova错误向Sentry报告
在我的应用程序handler.php
中,我按照哨兵文档
public function register()
{
$this->reportable(function (Throwable $e) {
if (app()->bound('sentry')) {
app('sentry')->captureException($e);
}
});
}
和我的novaserviceprovider.php
在Nova文档中具有。
public function register()
{
Nova::report(function ($exception) {
if (app()->bound('sentry')) {
app('sentry')->captureException($exception);
}
});
}
但是,Nova中没有一个错误都传给了Sentry。其他错误也很好。
使用Nova 3.32.0和Sentry 2.12
In my app Handler.php
I have this as per the Sentry docs
public function register()
{
$this->reportable(function (Throwable $e) {
if (app()->bound('sentry')) {
app('sentry')->captureException($e);
}
});
}
and in my NovaServiceProvider.php
I have as per the Nova docs.
public function register()
{
Nova::report(function ($exception) {
if (app()->bound('sentry')) {
app('sentry')->captureException($exception);
}
});
}
However, none of my errors from Nova are being passed to Sentry. Other errors are being passed just fine.
Using Nova 3.32.0 and Sentry 2.12
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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