我有一个Azure功能,它连接到App Insights实例.功能应用程序发出日志消息,我可以在Azure门户的日志流中看到这些消息,以及App Insights跟踪.
我通过向(https://github.com/Azure/azure-webjobs-sdk-script/wiki/host.json)添加一个"tracing"元素将控制台日志级别增加到Verbose ,因此详细信息会显示在日志中流(在Azure门户的功能页面和Kudu中),但我无法在App Insights中显示详细级别跟踪.host.json
有谁知道如何让App Insights显示Azure功能的详细级别跟踪?它甚至可能吗?(信息跟踪及以上内容在App Insights中显示得很好)
我有一个MVC 5应用程序提供视图,一个Web API 2应用程序作为服务层(.NET 4.5).Web API应用程序使用SignalR 2.1.2在处理POST到服务API时返回进度.这两个部署到不同的域,所以我根据asp.net教程文章设置了跨源支持.
[assembly: OwinStartup(typeof (Startup))]
namespace MyApp.Service
{
public class Startup
{
public void Configuration(IAppBuilder app)
{
app.Map("/signalr", map =>
{
//worry about locking it down to specific origin later
map.UseCors(CorsOptions.AllowAll);
map.RunSignalR(new HubConfiguration());
});
//now start the WebAPI app
GlobalConfiguration.Configure(WebApiConfig.Register);
}
}
}
Run Code Online (Sandbox Code Playgroud)
WebApiConfig.cs还包含自己的CORS声明.
namespace MyApp.Service
{
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
//controller invocations will come from the MVC project which is deployed to a
//different domain, …Run Code Online (Sandbox Code Playgroud)