我在Aurelia开发了SPA应用程序。当我查询一个会话时(参见下面的查询),我看到了令人发指的持续时间测量。连续页面的页面持续时间继续增加。时间戳表示页面视图的发生时间远远少于持续时间指示的时间。与时间戳相比,其他会话按预期工作,持续时间范围。
我们在Aurelia使用以下NPM程序包登录到应用程序洞察:https://www.npmjs.com/package/aurelia-application-insights
如何让持续时间更准确?
示例查询
pageViews
| where timestamp >= ago(1h) and session_Id == "FPVOw"
| order by timestamp asc
示例持续时间
timestamp [UTC] name duration performanceBucket
2017-12-28T02:51:46.188 Application 2,934,817 >=5min
2017-12-28T02:51:57.289 Application 2,946,021 >=5min
2017-12-28T02:52:17.852 Application 2,966,581 >=5min
2017-12-28T02:52:21.935 Application 2,970,662 >=5min
2017-12-28T02:52:26.540 Application 2,975,271 >=5min
2017-12-28T02:52:53.082 Application 3,001,815 >=5min
2017-12-28T02:52:58.192 Application 3,006,912 >=5min