【问题标题】:Application Insights stop working after deployed to AzureApplication Insights 在部署到 Azure 后停止工作
【发布时间】:2019-06-21 02:48:26
【问题描述】:

我在我的 asp.net core (2.2) 应用上设置了 Application Insights。当我在本地运行我的应用程序时,我可以在 Azure 门户中看到数据。但是,一旦我将其部署到 Azure 中的应用服务,Application Insights 就会停止工作——根本没有数据流。我还缺少任何其他步骤吗?

【问题讨论】:

  • 您可能在部署时丢失或覆盖了telemetry instrumentation key guid - 如果您有多个环境,您需要将其移至配置中。
  • 您是如何指定检测密钥的?答案取决于此。

标签: azure asp.net-core azure-application-insights azure-web-app-service


【解决方案1】:

添加到 Stuart 的 cmets-> 如果您编辑了 ApplicationInsights.config,请检查 TelemetryInitializers 和 TelemetryProcessors 的配置。错误命名的类型或参数可能会导致 SDK 不发送数据。
此外,在 Application Insights 门户中,打开诊断搜索。数据通常首先出现在这里。刷新看看是否有帮助。 如果可行,您可以重新启动应用程序并检查是否有帮助。

【讨论】:

    猜你喜欢
    • 2021-06-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2023-01-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多