.Net Core 2.2,App Insights,使用onprem应用程序进行跟踪 [英] .Net Core 2.2, App Insights, Tracing with an on -prem application
问题描述
我有一个在本地服务器上运行的Web API。 API在Kestrel下运行 我有App Insights设置。我看到了请求和依赖项。我没有看到任何痕迹。
如何在门户网站上显示跟踪信息?
如果无法看到您的设置,我会首先确保您正确记录了跟踪:
我确定您已经这样做了,但也请确保您在正确的位置搜索日志(概述页面上的"搜索"按钮) :
https:// docs。 microsoft.com/en-us/azure/azure-monitor/app/diagnostic-search
如果没有工作,然后检查您的applicationinsights.config文件:
- " ExcludedTypes"
- 检测密钥
- 正在部署确认配置
最后,只需确认Application Insights配置正确:
https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp-net-core
I have a web API that is running on a local server. The API is running under Kestrel and I have App Insights setup. I am seeing requests and dependencies. I am not seeing any traces.
How do I get tracing to show up in the portal?
Without being able to see your setup, I would start off by making sure that you are correctly logging traces:
I'm sure you're already doing this, but also make sure that you are searching for logs in the right place (the "Search" button on the Overview page):
https://docs.microsoft.com/en-us/azure/azure-monitor/app/diagnostic-search
If that doesn't work, then check your applicationinsights.config file:
- "ExcludedTypes"
- Instrumentation key
- Confirm config is being deployed
And lastly, just confirm that Application Insights is correctly configured:
https://docs.microsoft.com/en-us/azure/azure-monitor/app/asp-net-core
这篇关于.Net Core 2.2,App Insights,使用onprem应用程序进行跟踪的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!