Application Insights可以使用的最低功能是什么?

时间:2015-09-30 12:57:04

标签: windows-phone azure-application-insights

我试图将Application Insights添加到现有项目中,该项目仅标记以下功能:

  <Capability Name="ID_CAP_LOCATION" />
  <Capability Name="ID_CAP_NETWORKING" />
  <Capability Name="ID_CAP_PHONEDIALER" />
  <Capability Name="ID_CAP_MAP" />

我已将应用程序构建器中的调用添加到:

WindowsAppInitializer.InitializeAsync();

当然,我已经检查了ApplicationInsights.config文件,以检查我门户网站上显示的InstrumentationKey匹配项。

我是否需要添加其他功能才能使这些功能正常工作,因为我没有在Azure门户上看到任何显示订阅的内容,而且我在调试输出中看不到任何建议是否正在尝试发送任何诊断信息?

1 个答案:

答案 0 :(得分:0)

唯一需要的功能似乎是ID_CAP_NETWORKING

另外需要注意的事项;当使用UI与您的applciation见解相关联时,它会在applicationInsights.config文件中添加一个架构,这会阻止它运行。

所以,而不是:

<?xml version="1.0" encoding="utf-8"?>
<ApplicationInsights>
  <InstrumentationKey xmlns="http://schemas.microsoft.com/ApplicationInsights/2013/Settings">xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</InstrumentationKey>
</ApplicationInsights>

应该看起来更像:

<?xml version="1.0" encoding="utf-8"?>
<ApplicationInsights>
  <InstrumentationKey>xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx</InstrumentationKey>
</ApplicationInsights>
相关问题