Azure Application Insights 是否有最大日志长度?

Does Azure Application Insights have a max log length?

我有一个 Azure 函数 (Python) 绑定到 App Insights 实例。该函数从 Azure 存储下载大型 blob 进行处理。 BlobClient 对 blob 容器进行 多次 调用,作为加载到内存中的一部分。

大约 2GB 的文件会导致 App Insights 日志被截断(日志中的最后一条消息应为 ### File Successfully Processed ###):

Kusto 查询是:

union traces
| union exceptions
| where timestamp > ago(30d)
| where operation_Id == 'bigGUID'
| where customDimensions['InvocationId'] == 'bigGUID2'
| order by timestamp asc
| project timestamp, message = iff(message != '', message, iff(innermostMessage != '', innermostMessage, customDimensions.['prop__{OriginalFormat}'])), logLevel = customDimensions.['LogLevel']

单个事件的 App Insights 日志长度是否有限制?

是的,有一个最大长度。 请在这里找到答案:

The message has the highest allowed limit of 32768. For items in the property collection ,value has max limit of 8192.
Reference: https://github.com/microsoft/ApplicationInsights-Home/blob/master/EndpointSpecs/Schemas/Bond/MessageData.bond