我已经为asp.net核心项目建立了应用程序见解。
appsettings.json:
"ApplicationInsights": {
"InstrumentationKey": "90f786b7-36a5-xxxx-b1fc-xxxxxxxxx"
},
Startup.cs:
services.AddApplicationInsightsTelemetry();
并且现在可以在我的控制器中登录:
Logger.LogDebug("LogDebug");
我找不到有关如何设置CustomDemensions的任何信息。我可以看到在重载上有一个对象数组,但不确定是否用于自定义维度。有指针吗?