AppInsights依赖关系跟踪记录的Rogue CurlException

时间:2018-03-20 04:11:40

标签: asp.net azure .net-core azure-application-insights azure-vm-scale-set

摘要

在dotnetcore 2 ASP.NET应用程序中,我们遇到了一个没有非常有意义的堆栈跟踪的流氓CurlException。这似乎是从AI依赖关系跟踪模块发送给AI的。它只是我们日志中的一个烦恼,因为它在我们的代码中表现为来自HttpClient的Http响应消息。这是System.Net.Http中的一个错误,它不应该记录异常吗?有没有办法禁用此功能,除了禁用所有依赖关系跟踪?

环境

  • .NET Core 2.1.4
  • 主机:Azure规模集上的Ubuntu 16.04(Xenial)

异常信息(来自Application Insights)

problemId: System.Net.Http.CurlException at System.Net.Http.CurlHandler.ThrowIfCURLEError
type: System.Net.Http.CurlException
assembly: System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a
method: ystem.Net.Http.CurlHandler.ThrowIfCURLEError
outerType: System.Net.Http.HttpRequestException
outerMessage: An error occurred while sending the request.
outerAssembly: System.Private.CoreLib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e
outerMethod: System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw
innermostType: System.Net.Http.CurlException
innermostMessage: Couldn't connect to server
parsed stack trace:
{"assembly":"System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a","method":"System.Net.Http.CurlHandler.ThrowIfCURLEError","level":0,"line":0}
{"assembly":"System.Net.Http, Version=4.2.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a","method":"System.Net.Http.CurlHandler+MultiAgent.FinishRequest","level":1,"line":0}
sdkVersion: rdddsc:2.5.0-33031

0 个答案:

没有答案