【问题标题】:What's Application Insights Telemetry (unconfigured) doing?Application Insights 遥测(未配置)在做什么?
【发布时间】:2016-08-12 11:43:23
【问题描述】:

我在 VS 2015 中运行 MVC 应用程序。在调试模式下,一切正常,直到我尝试创建新用户。

创建表单也适用于保存按钮。但是新数据没有显示在索引中,但新的编辑/详细信息/删除是索引。

输出告诉: Application Insights 遥测(重新配置):

{"name":"Microsoft.ApplicationInsights.Dev.PerformanceCounter","time":"2016-04-20T10:41:44.1380123+08:00","tags":{"ai.internal.sdkVersion" :"1.2.3.490","ai.device.roleInstance":"KL-PT-049.icarasia.local","ai.application.ver":"未知","ai.device.type":"PC" ,"ai.device.id":"KL-PT-049.icarasia.local","ai.device.oemName":"惠普","ai.device.model":"HP ProBook 4440s","ai.device.network":"Wireless80211","ai.device.language":"en-MY"},"data":{"baseType":"PerformanceCounterData","baseData":{"ver ":2,"categoryName":"处理器","counterName":"% 处理器 Time","instanceName":"_Total","value":23.789436340332,"properties":{"DeveloperMode":"true"}}}}

我想知道创建用户和应用程序洞察遥测之间有什么关系吗?谢谢

Click here for picture

【问题讨论】:

    标签: asp.net-mvc azure-application-insights telemetry


    【解决方案1】:

    不,不相关。您通过安装 nuget nuget 包启用了 Application Insights,但您没有通过提供检测密钥来配置它。

    因此,在调试 Application Insights 时会收集遥测数据(在您的情况下,它是一个性能计数器),但它不会发送到任何地方。

    VS 2015 中的 Application Insights Hub 监听这些事件并提供用于分析事件的漂亮 UI (View ->Other Windows->Application Insights Search)。

    如果您喜欢提供的见解,您应该创建 Azure 资源并将 iKey 添加到应用程序见解配置 (Getting Started)。如果您觉得它没有用 - 卸载 nuget 包。

    【讨论】:

    • 是的,你是对的。从调试模式跟踪几次后,问题出在我的存储过程中。谢谢
    猜你喜欢
    • 1970-01-01
    • 2020-01-08
    • 2021-01-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-03-08
    相关资源
    最近更新 更多