[英]Application Insights - Getting only server side data, no client side data
We monitor our asp.net MVC web application using application insights.我们使用应用程序洞察来监控我们的 asp.net MVC Web 应用程序。 We used to just do server side logging, but recently I tried to also start logging client side data as explained here: https://docs.microsoft.com/en-US/azure/application-insights/app-insights-javascript
我们过去只做服务器端日志记录,但最近我也尝试开始记录客户端数据,如下所述: https : //docs.microsoft.com/en-US/azure/application-insights/app-insights-javascript
I added the script to the _layout.cshtml file and when I run the app and check if the object appInsights exists in the chrome dev tools it's up and running and it contains the right application key, but it's not logging any data.我将脚本添加到 _layout.cshtml 文件中,当我运行应用程序并检查对象 appInsights 是否存在于 chrome 开发工具中时,它已启动并正在运行,并且它包含正确的应用程序密钥,但它没有记录任何数据。 All blades in Azure's App Insights report that there's no data.
Azure 的 App Insights 中的所有刀片都报告没有数据。
Any clues?有什么线索吗?
Regards, Ted问候,泰德
Had the similar problem.有类似的问题。 In my case it was resolved by putting the quotation marks around an instrumentation key in JavaScript snippet.
在我的情况下,它是通过在 JavaScript 片段中的检测键周围加上引号来解决的。
Please have a look at this troubleshooting article for some other scenarios: https://docs.microsoft.com/en-us/azure/azure-monitor/app/javascript-sdk-load-failure请查看此故障排除文章以了解其他一些情况: https : //docs.microsoft.com/en-us/azure/azure-monitor/app/javascript-sdk-load-failure
Please check telemetry being sent to the application insights endpoint dc.services.visualstudio.com/v2/track (look for any outgoing requests with "url" property for pageviews and in that telemetry item, please confirm ikey) in fiddler.请在 fiddler 中检查发送到应用程序洞察端点 dc.services.visualstudio.com/v2/track 的遥测(查找任何带有“url”属性的传出请求以获取页面浏览量,并在该遥测项目中确认 ikey)。 Also, if you are running this through visual studio debugger, we filter out traffic from browser links, so that telemetry will not be sent.
此外,如果您通过 Visual Studio 调试器运行此程序,我们会从浏览器链接中过滤掉流量,以便不会发送遥测数据。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.