微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

适用于云服务的 Application Insights Profiler ApplicationInsightsProfiler 接收器密钥

如何解决适用于云服务的 Application Insights Profiler ApplicationInsightsProfiler 接收器密钥

根据文档Profile live Azure Cloud Services with Application Insights。应用程序洞察密钥必须在 WadCfg 中提供。

<WadCfg>
  <DiagnosticMonitorConfiguration>...</DiagnosticMonitorConfiguration>
  <SinksConfig>
    <Sink name="MyApplicationInsightsProfiler">
      <!-- Replace with your own Application Insights instrumentation key. -->
      <ApplicationInsightsProfiler>00000000-0000-0000-0000-000000000000</ApplicationInsightsProfiler>
    </Sink>
  </SinksConfig>
</WadCfg>

但是,当每个环境使用 ServiceConfiguration.*.cscfg 文件时,应用程序洞察密钥存储在 cscfg 文件中,但 <ApplicationInsightsProfile> 似乎不符合该位置。

如何将应用程序洞察键链接到 WadCfg 文件中的分析器接收器。或者是否有其他方法可以为每个环境配置 Application Insights Profiler?

解决方法

最终在构建管道中创建了一个 wadcfg 转换,因为似乎没有任何内置机制来处理这个问题。

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。