{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server/issues/912","repository_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server","labels_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server/issues/912/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server/issues/912/comments","events_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server/issues/912/events","html_url":"https://github.com/Microsoft/ApplicationInsights-dotnet-server/issues/912","id":322621589,"number":912,"title":"WCF Service dependency tracking only auth requests resulting into 401 response","user":{"login":"gabarach","id":19549304,"avatar_url":"https://avatars0.githubusercontent.com/u/19549304?v=4","gravatar_id":"","url":"https://api.github.com/users/gabarach","html_url":"https://github.com/gabarach","followers_url":"https://api.github.com/users/gabarach/followers","following_url":"https://api.github.com/users/gabarach/following{/other_user}","gists_url":"https://api.github.com/users/gabarach/gists{/gist_id}","starred_url":"https://api.github.com/users/gabarach/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gabarach/subscriptions","organizations_url":"https://api.github.com/users/gabarach/orgs","repos_url":"https://api.github.com/users/gabarach/repos","events_url":"https://api.github.com/users/gabarach/events{/privacy}","received_events_url":"https://api.github.com/users/gabarach/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-05-13T19:45:17Z","updated_at":"2018-05-15T06:15:18Z","closed_at":"2018-05-15T06:15:18Z","author_association":"NONE","body":"If you are reporting bug/issue, please provide detailed Repro instructions.\r\n\r\n## Repro Steps\r\n1. Create an ASP.NET (target framework 4.6.1) Web API application using Visual Studio 2017 (by default, it refers to Application Insights 2.2 SDK)\r\n**Packages.config**:\r\n```\r\n<package id=\"Microsoft.ApplicationInsights\" version=\"2.2.0\" targetFramework=\"net461\" />\r\n  <package id=\"Microsoft.ApplicationInsights.Agent.Intercept\" version=\"2.0.6\" targetFramework=\"net461\" />\r\n  <package id=\"Microsoft.ApplicationInsights.DependencyCollector\" version=\"2.2.0\" targetFramework=\"net461\" />\r\n  <package id=\"Microsoft.ApplicationInsights.PerfCounterCollector\" version=\"2.2.0\" targetFramework=\"net461\" />\r\n  <package id=\"Microsoft.ApplicationInsights.Web\" version=\"2.2.0\" targetFramework=\"net461\" />\r\n  <package id=\"Microsoft.ApplicationInsights.WindowsServer\" version=\"2.2.0\" targetFramework=\"net461\" />\r\n  <package id=\"Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel\" version=\"2.2.0\" targetFramework=\"net461\" />\r\n```\r\n\r\n2. Update the Application Insights nuget packages to either 2.4 or 2.6.1\r\n**Packages.config**:\r\n```\r\n<package id=\"Microsoft.ApplicationInsights\" version=\"2.6.1\" targetFramework=\"net461\" />\r\n  <package id=\"Microsoft.ApplicationInsights.Agent.Intercept\" version=\"2.4.0\" targetFramework=\"net461\" />\r\n  <package id=\"Microsoft.ApplicationInsights.DependencyCollector\" version=\"2.6.1\" targetFramework=\"net461\" />\r\n  <package id=\"Microsoft.ApplicationInsights.PerfCounterCollector\" version=\"2.6.1\" targetFramework=\"net461\" />\r\n  <package id=\"Microsoft.ApplicationInsights.Web\" version=\"2.6.1\" targetFramework=\"net461\" />\r\n  <package id=\"Microsoft.ApplicationInsights.WindowsServer\" version=\"2.6.1\" targetFramework=\"net461\" />\r\n  <package id=\"Microsoft.ApplicationInsights.WindowsServer.TelemetryChannel\" version=\"2.6.1\" targetFramework=\"net461\" />\r\n```\r\n  \r\n3. Specify the Application Insights instrumentation key in the ApplicationInsights.config file. \r\n4. Add a service reference to a WCF service that uses basicHttpBinding and has been configured for Transport Security using Windows Authentication.\r\n5. Write code to invoke WCF operation from the Web API controller (e.g. ValuesController)\r\n6. Either deploy/host the Web API in Azure App Services or host in IIS or simply run using Visual Studio/IIS Express\r\n7. Invoke Web API method (e.g. values/get)\r\n8. Visit Application Insights Log Analytics and query both **requests** and **dependencies** tables.\r\n\r\n##  Actual Behavior\r\nQuery to dependencies for the corresponding operation_Id of the request will show only records with type=WCF Service, resultCode=401, Success=FALSE though the service call was successful. It’s only tracking the authentication request resulting into 401 response code. The subsequent HTTP POST request with user credentials and response code 200, isn’t tracked. Ideally, it should combine both and show as a single dependency as done in AI 2.2 SDK.\r\n\r\n## Expected Behavior\r\nDependencies should combine the duration for both auth handshake related HTTP request and actual operation and list it as a single record with resultCode=200.\r\n\r\n## Version Info \r\nSDK Version : 2.4 or 2.6.1\r\n.NET Version :\t4.6.1 \t\t\t\t\t\t\r\nHow Application was onboarded with SDK(VisualStudio/StatusMonitor/Azure Extension) : Visual Studio\r\nOS : Windows 10 (Version 1607)\r\nHosting Info (IIS/Azure WebApps/ etc) : Both IIS and Azure App Services - API App"},"comment":{"url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server/issues/comments/389054686","html_url":"https://github.com/Microsoft/ApplicationInsights-dotnet-server/issues/912#issuecomment-389054686","issue_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server/issues/912","id":389054686,"user":{"login":"lmolkova","id":2347409,"avatar_url":"https://avatars2.githubusercontent.com/u/2347409?v=4","gravatar_id":"","url":"https://api.github.com/users/lmolkova","html_url":"https://github.com/lmolkova","followers_url":"https://api.github.com/users/lmolkova/followers","following_url":"https://api.github.com/users/lmolkova/following{/other_user}","gists_url":"https://api.github.com/users/lmolkova/gists{/gist_id}","starred_url":"https://api.github.com/users/lmolkova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lmolkova/subscriptions","organizations_url":"https://api.github.com/users/lmolkova/orgs","repos_url":"https://api.github.com/users/lmolkova/repos","events_url":"https://api.github.com/users/lmolkova/events{/privacy}","received_events_url":"https://api.github.com/users/lmolkova/received_events","type":"User","site_admin":false},"created_at":"2018-05-15T06:15:18Z","updated_at":"2018-05-15T06:15:18Z","author_association":"CONTRIBUTOR","body":"Unfortunately we do not support tracking WCF client calls yet. Please check this experimental project https://github.com/Microsoft/ApplicationInsights-SDK-Labs/tree/master/WCF and let us know if it helps. I'm closing this for now, feel free to reopen"}}
{"actor":{"display_login":"lmolkova"}}