Application Insights analytics让运营商

时间:2017-05-30 19:54:46

标签: azure azure-application-insights

以下查询有什么问题?:

let errIds = exceptions
| where operation_Name == "My Special Operation" 
| summarize by operation_Id
traces
| where operation_Name == "My Special Operation" and operation_Id !in (errIds)
| summarize count() by operation_Id 

我试图获取未产生异常的操作......

2 个答案:

答案 0 :(得分:1)

要获取未生成异常的跟踪,请如何使用exceptions执行join,如下所示。将join的类型设置为anti,以使其所有没有任何相关例外的跟踪

traces
    | where operation_Name == "My Special Operation"
    | join kind=anti (exceptions) on operation_Id
    | summarize count() by operation_Id 

答案 1 :(得分:1)

实际上,在;声明

之后,我失踪的是let