Azure Application Insights 变灰但日志正在填充

Azure Application Insights Greyed Out but logs are populating

我有一个 Azure 应用服务 运行。应用服务是 运行 一个 linux 容器 运行 .NET 5 应用服务。

我添加了 Microsoft.ApplicationInsights.AspNetCore Nuget。

我已将 AddApplicationInsightsTelemetry() 添加到我的 Startup.cs

public void ConfigureServices(IServiceCollection services)
{
    services.AddControllers();
    services.AddApplicationInsightsTelemetry();
}

正在使用变量 'APPINSIGHTS_INSTRUMENTATIONKEY'

将 Instrument 密钥添加到 Azure 中的应用服务配置

如果我进入我的资源组并直接打开 Application Insights 资源,我可以毫无问题地看到所有日志。但是,当我进入我的应用程序服务资源时,Application Insights link 显示为灰色。为什么我无法从我的应用服务导航到应用洞察资源?

这是hasn't supported code-less mode for linux. There's 造成这种情况的结果。而且这里确实只能安装sdk来设置app insights