Application Insights Down - 对应用程序的影响

Application Insights Down - Impact on the Application

我们使用来自 Azure Functions 的应用洞察力,目前记录了不同 Azure 组件的中断场景。如果 Application Insights 服务出现故障,会对 Functions 产生什么影响?我希望它不会影响函数执行,它们会继续正常运行。

另外当它恢复在线时,比方说断电半小时后,在那段时间内完成的所有日志都会丢失吗?

What'll be the impact on Functions if Application Insights service goes down? I hope it doesn't impact Function executions and they continue to operate as normal.

没有。函数将继续 运行,因为 usual.Telemetry 无论如何提交都是在后台完成的。

Also when it comes back online, let's say half an hour after the outage, would all the logs done during that time will be lost?

这取决于配置的频道。 Application Insights .NET 和 .NET Core SDK 附带 two built-in channels:

  • InMemoryChannel:一个轻量级通道,它在内存中缓冲项目,直到它们被发送。项目在内存中缓冲并每 30 秒刷新一次,或者每当缓冲 500 个项目时。此通道提供最低限度的可靠性保证,因为它不会在失败后重试发送遥测数据。此通道也不会将项目保留在磁盘上,因此任何未发送的项目都会在应用程序关闭时永久丢失(正常或不正常)。此通道实现 Flush() 方法,可用于同步强制刷新任何内存中的遥测项目。
  • ServerTelemetryChannel:一个更高级的通道,具有重试策略和在本地磁盘上存储数据的能力。如果发生暂时性错误,此通道会重试发送遥测数据。此频道还使用本地磁盘存储在网络中断或高遥测量期间将项目保存在磁盘上。

使用 ServerTelemetryChannel 时,您可能需要 configure the location where telemetry will be stored during the downtime. See also the docs regarding offline storage