我在 Application Insights 中有一些数据,我正在使用 Analytics 视图编写针对它的查询。
我可以看到我有一个跟踪,其中的 CustomDimensions 包含一个名为 ActivityID 的属性,它是一个 guid:
我现在要做的是运行另一个查询以返回包含该 ActivityId 的所有跟踪。
以此为指导,我目前有以下内容:
union (traces
| extend ActivityId = tostring(customDimensions.ActivityId)
| project ActivityId
| where ActivityId == "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx")
| top 101 by timestamp desc
但是,这将返回以下语法错误消息:
Failed to resolve 'top' key column
我究竟做错了什么?如果可能的话,我也将不胜感激并解释错误消息。