You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 5, 2020. It is now read-only.
HttpClient in 2.0 fires deprecated and 'new' events.
When 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).
@lmolkova , 2.5-Beta1 is around the corner. 2.5 stable was initially planned for this quarter, but no certain date yet. 2.5-Beta2 is the closest and was planned for November.
HttpClient in 2.0 fires deprecated and 'new' events.
When 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).
AppInsights 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.
However 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.
So,
isNetCore20HttpClient
check should be done inOnRequest
andOnResponse
callbacks too.The text was updated successfully, but these errors were encountered: