{"action":"reopened","issue":{"url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server/issues/723","repository_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server","labels_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server/issues/723/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server/issues/723/comments","events_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server/issues/723/events","html_url":"https://github.com/Microsoft/ApplicationInsights-dotnet-server/issues/723","id":269728928,"number":723,"title":"When debugging netcoreapp2.0 in VS, http dependencies are tracked twice","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},"labels":[{"id":272772337,"url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server/milestones/26","html_url":"https://github.com/Microsoft/ApplicationInsights-dotnet-server/milestone/26","labels_url":"https://api.github.com/repos/Microsoft/ApplicationInsights-dotnet-server/milestones/26/labels","id":2562760,"number":26,"title":"2.5-Beta2","description":"","creator":{"login":"cijothomas","id":5232798,"avatar_url":"https://avatars3.githubusercontent.com/u/5232798?v=4","gravatar_id":"","url":"https://api.github.com/users/cijothomas","html_url":"https://github.com/cijothomas","followers_url":"https://api.github.com/users/cijothomas/followers","following_url":"https://api.github.com/users/cijothomas/following{/other_user}","gists_url":"https://api.github.com/users/cijothomas/gists{/gist_id}","starred_url":"https://api.github.com/users/cijothomas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cijothomas/subscriptions","organizations_url":"https://api.github.com/users/cijothomas/orgs","repos_url":"https://api.github.com/users/cijothomas/repos","events_url":"https://api.github.com/users/cijothomas/events{/privacy}","received_events_url":"https://api.github.com/users/cijothomas/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":6,"state":"closed","created_at":"2017-06-05T17:31:13Z","updated_at":"2018-03-09T22:21:29Z","due_on":"2017-12-01T08:00:00Z","closed_at":"2017-12-20T19:13:46Z"},"comments":5,"created_at":"2017-10-30T19:42:22Z","updated_at":"2018-03-09T22:21:29Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"HttpClient in 2.0 fires deprecated and 'new' events.\r\n\r\nWhen debugging, VS subscribes to deprecated events, AppInsights subscribes to 'new' events from 2.0 client (but also listens to old events to support older versions).\r\n\r\nAppInsights attempts to filter out old events for 2.0 clients (https://github.com/Microsoft/ApplicationInsights-dotnet-server/blob/develop/Src/DependencyCollector/Shared/Implementation/HttpCoreDiagnosticSourceListener.cs#L560) with IsEnabled callback.\r\nHowever when there are 2 listeners for diagnostics source, it's enough if just one of them returns true for IsEnabled, then all listeners get the notification.\r\n\r\nSo, `isNetCore20HttpClient` check should be done in `OnRequest` and `OnResponse` callbacks too."}}
{"actor":{"display_login":"lmolkova"}}