将非 IIS .NET 应用程序的异常报告到 New Relic
我有一个 Windows 服务应用程序,我想将其错误推送到 New Relic 中,因为我们将它用于所有其他(Web 应用程序)错误监控。 New Relic Agent API 文档说这可以通过 NoticeError(System.例外)
方法。根据 this doco,我只需要设置一个名为 COR_ENABLE_PROFILING 的环境变量 并放入我已完成的两个 appSetting
值,但 New Relic 中仍然没有显示任何内容。
我错过了什么?
I've got a windows service application that I would like to push errors from into New Relic, since we use it for all our other (web application) error monitoring. The New Relic Agent API docs say that this can be done with the NoticeError(System.Exception)
method. And according to this doco, I just need to set an environment variable named COR_ENABLE_PROFILING
and put two appSetting
values in which I've done, but still nothing is showing up in New Relic.
What have I missed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
NoticeError() API 方法可以将错误从后台进程发送到 New Relic,但有一些配置设置可能会阻止数据正确发送或记录。为了找到问题,我需要查看您的配置文件、使用 NoticeError() 的代码、该代码触发时来自代理的一些日志,以及最好是您的 New Relic 帐户。为了私下获得所有这些信息,我想请您通过 https://support.newrelic 向我们发送支持票.com/
如果您在票证中链接到此问题,如果修复不特定于您的代码,我们可以发布修复。
The NoticeError() API method can send errors from background processes to New Relic, but there are a few configuration settings that can prevent data being sent or recorded correctly. To find the problem I'd need to see your configuration file, the code that's using NoticeError(), some logs from your agent when that code is firing, and preferably your New Relic account. To get all that privately, I'd like to ask you send us a support ticket with us at https://support.newrelic.com/
If you link to this question in the ticket, we can post the fix if it's not specific to your code.