Application Insights starttrackevent stoptrackevent 在单个会话中跨页面

Application Insights starttrackevent stopstrackevent across pages in a single session

我无法追踪这方面的文档,所以希望有人知道我无法获得应用程序洞察力来跨页面捕获 starttrackevent 和 stoptrackevent 上的遥测数据。这是一个 asp.net mvc 应用程序,因此 SPA 不在此处发挥作用。

我担心我可能做错了什么,但可能的情况是它不支持它。

流量:

-- 来自 appInsights 自述文件 https://github.com/microsoft/ApplicationInsights-JS/blob/master/README.md

appInsights.startTrackEvent("event");

appInsights.stopTrackEvent("event", null, {customProp1: "some value"});

不是根据文档,而是通过测试,可以确认当加载新页面时,appInsights 不会持续存在 start/stoptrackevent。