Jos*_*hka 7 .net azure azure-webjobs azure-application-insights
我可以在Application Insights上找到的所有信息似乎都针对网站/ Windows商店/手机应用.我想监视Azure webjob,第一步是能够监视命令行应用程序.为了使这项工作,我需要做什么?
Ole*_*ych 13
要在控制台应用程序中使用Application Insights,
按照此处所述创建新的Application Insights资源.
使用NuGet包管理器引用Microsoft.ApplicationInsights
控制台应用程序中的包.
在开始时Program.Main
,配置Application Insights以使用资源的检测密钥.
TelemetryConfiguration.Active.InstrumentationKey = "your key";
TelemetryClient
在应用程序代码中创建实例并调用此处Track
描述的相关方法. 归档时间: |
|
查看次数: |
3065 次 |
最近记录: |