从C#中的Azure应用程序洞察检索日志
我需要从C#中的Azure应用程序见解中检索日志(痕迹,异常,请求)。为此,我必须使用应用Insights提供的API。我在此博客中找到了在此处输入链接说明使用Microsoft.azure.applicationinsights的软件包进行操作的一种方法,但已弃用。其他替代方案? 提前致谢。
I need to retrieve logs (traces, exceptions, requests) from azure application insights in c#. For that I have to use the API provided by App insights. I found in this blog enter link description here a way to do that using the package Microsoft.Azure.ApplicationInsights but it's deprecated. Other alternatives for that?
Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
谢谢 @deepdave-mt,是的,microsoft.azure.applicationinsights已弃用,并且有新版本发布 Nuget Gallery | microsoft.azure.applicationinsights.query 1.0.0
根据 Microsoft-pocumentation 它说,
参考:
c# - https://www.nuget.org/packages/packages/packages/packages/microsoft.azure.applicationinsightsights/- stack Overflow
://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net-trace-lace-lace-lace-'r =“ nofollow noreferrer”> https://learn.microsoft.com/en-en-us/ azure/azure-monitor/app/asp-net-trace-logs
Thanks @DeepDave-Mt, Yes the Microsoft.Azure.ApplicationInsights is deprecated and there is new version released NuGet Gallery | Microsoft.Azure.ApplicationInsights.Query 1.0.0
According to Microsoft-Documentation it says,
References:
c# - Alternative to https://www.nuget.org/packages/Microsoft.Azure.ApplicationInsights/ - Stack Overflow
https://learn.microsoft.com/en-us/azure/azure-monitor/app/asp-net-trace-logs
https://www.c-sharpcorner.com/article/using-azure-application-insights-for-exception-logging-in-c-sharp/