Botframework Azure机器人服务中的自定义遥测应用程序
我已经成功地添加了AI依赖项,并且能够导入/使用in.csx文件,但在Application Insights资源上没有看到任何遥测 除失败的请求和一个自定义事件“活动”外,所有使用情况、浏览器和服务器图表均为空 在我的Botframework Azure机器人服务中的自定义遥测应用程序,botframework,azure-application-insights,azure-functions,botconnector,azure-bot-service,Botframework,Azure Application Insights,Azure Functions,Botconnector,Azure Bot Service,我已经成功地添加了AI依赖项,并且能够导入/使用in.csx文件,但在Application Insights资源上没有看到任何遥测 除失败的请求和一个自定义事件“活动”外,所有使用情况、浏览器和服务器图表均为空 在我的project.json中,我提到了所有AI依赖项,如下所示: { "frameworks": { "net46":{ "dependencies": { "Microsoft.Bot.Builder.Azure": "3.1", "Microsoft.Appli
project.json
中,我提到了所有AI依赖项,如下所示:
{ "frameworks": {
"net46":{
"dependencies": {
"Microsoft.Bot.Builder.Azure": "3.1",
"Microsoft.ApplicationInsights": "2.1.0",
"Microsoft.ApplicationInsights.Agent.Intercept": "1.2.1",
"Microsoft.ApplicationInsights.Azure.WebSites": "2.1.3",
"Microsoft.ApplicationInsights.DependencyCollector": "2.1.0",
"Microsoft.ApplicationInsights.PerfCounterCollector": "2.1.0",
"Microsoft.ApplicationInsights.TraceListener": "2.1.0",
"Microsoft.ApplicationInsights.Web": "2.1.0",
"Microsoft.ApplicationInsights.WindowsServer": "2.1.0",
"Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel": "2.1.0",
"Microsoft.Web.Infrastructure": "1.0.0.0"
}
}
}
}
然后我尝试在MessageReceivedAsync
下的对话框中使用如下方法:
await context.PostAsync($"{this.count++}: You said {message.Text}");
TelemetryClient telemetry = new TelemetryClient();
telemetry.TrackEvent("MessageReceivedAsync");
context.Wait(MessageReceivedAsync);
有人可以帮助实现它吗?这里是使用应用程序洞察的工作示例的参考
我希望这有帮助