gpt4 book ai didi

azure - 处理事件时出现EventSourceException "LogVerbose"

转载 作者:行者123 更新时间:2023-12-05 00:46:20 26 4
gpt4 key购买 nike

在使用 EventHubTrigger Azurefunction 时,在 ApplicationInsights 的遥测跟踪中收到了这样一个丑陋的异常(如下所示)。

AI(内部):[Microsoft-ApplicationInsights-Core] 处理事件“LogVerbose”时出现 EventSourceException:System.NullReferenceException:未将对象引用设置为对象的实例。

详细信息:

时间戳 [UTC]:2019-01-24T04:10:02.5700507Z

消息:AI(内部):[Microsoft-ApplicationInsights-Core] 处理事件“LogVerbose”时出现 EventSourceException:System.NullReferenceException:未将对象引用设置为对象的实例。

sdkVersion: dotnet:2.8.1-22898

最佳答案

https://github.com/Microsoft/ApplicationInsights-dotnet/issues/973

建议的解决方法是使用 Application Insights 依赖项 2.7.2。

For now, the options are:

  1. use the same version of AppInsihgts that Functions use (or lower)
  2. Filter out internal SDK messages. You can do this by creating and configuring telemetry processor. You can have a filter that checks if telemetry is TraceTelemetry and traceTelemetry.Context.Operation.SyntheticSource is SDKTelemetry
<PackageReference Include="Microsoft.ApplicationInsights" Version="2.7.2" />

否则,除了等待并希望 2.9 版本能够修复此问题之外,几乎没有什么办法。

关于azure - 处理事件时出现EventSourceException "LogVerbose",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54345421/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com