【问题标题】:Sentry not throwing error to the required mail哨兵没有向所需邮件抛出错误
【发布时间】:2019-11-26 07:49:03
【问题描述】:

我在我的节点后端使用了Sentry。这是过程

Sentry.init({
  dsn: 'my address',
  // ...
});
Sentry.captureException(new Error("Something broke"));

现在我没有收到任何错误或邮件。为什么我在这里做错了?

【问题讨论】:

    标签: node.js sentry


    【解决方案1】:

    您是否让应用程序在运行这两行后立即终止? 如果是这种情况,您可能会在进程发生更改以刷新(发送到哨兵)其内部队列中的事件之前将其终止。

    文档描述了Shutting down and draining the queue的过程。

    【讨论】:

    • 谢谢。如果需要更多帮助,我会通知您。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2015-08-27
    • 2021-07-01
    • 2014-06-11
    • 2021-08-08
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多