如果在使用Application Insights时遇到了"ApplicationInsightsTelemetryClient没有记录机器人标识符"的问题,可以尝试以下解决方法:
var telemetryClient = new TelemetryClient(new TelemetryConfiguration("your_instrumentation_key"));
var adapter = new BotFrameworkAdapter();
adapter.Use(new TelemetryLoggerMiddleware(telemetryClient));
telemetryClient.TrackEvent("EventName");
telemetryClient.TrackException(new Exception("Exception message"));
telemetryClient.TrackTrace("Trace message");
这些解决方法应该有助于解决"ApplicationInsightsTelemetryClient没有记录机器人标识符"的问题。如果问题仍然存在,请确保你的机器人应用程序与Application Insights正确集成,并且在记录事件时没有遗漏任何步骤。