简体   繁体   English

Application Insights - 仅获取服务器端数据,不获取客户端数据

[英]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.

相关问题 客户端数据到服务器端 - Client side data to server side 获取的数据无法到达客户端 - Data Fetched Not Getting to the Client Side .Net Core 中的数据注释只是客户端还是它们也验证服务器端? - Data annotations in .Net Core are only client side or they also validate server side? 如何仅将脏值从客户端数据传输对象传递到服务器端域模型 - How to pass dirty values only from client side data transfer object to server side domain model 通过 Tcp/IP 将客户端数据队列发送到服务器端 - Send client side data Queue to server side through Tcp/IP 如何将数据从客户端传递到服务器端 - How to pass data from client side to Server Side 通过服务器推送在客户端更新数据 - Update data on client side by server push 将数据发布到web方法或将客户端数据转储到服务器控件然后获取数据服务器端是否更快? - Is it faster to POST data to a webmethod or dump client-side data to a server control and then get the data server-side? 客户端数据加密/ SQL Server Express LocalDB - Client-side data encryption / SQL Server Express LocalDB ASP MVC 3服务器端WP7客户端应用程序 - ASP MVC 3 server side WP7 client side application
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM