簡體   English   中英

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”添加到 azure 中的應用服務配置中

如果我將 go 放入我的資源組並直接打開 Application Insights 資源,我可以毫無問題地查看所有日志。 但是,當我將 go 插入我的應用服務資源時,Application Insights 鏈接顯示為灰色。 任何想法為什么我無法從我的應用服務導航到應用洞察資源?

在此處輸入圖像描述

這是因為它不支持 linux 的無代碼模式 這種情況還有另一個答案 確實,您只能在此處安裝 sdk 來設置應用洞察。

在此處輸入圖像描述

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM