-
Notifications
You must be signed in to change notification settings - Fork 4.9k
Instrument HttpClientHandler on netfx with DiagnosticSource/Activity #17141
Conversation
|
@davidsh, are we using the build in this package for desktop? I was under the impression we were changing things to use the one built into the framework instead? |
Right now, we're building and using this for 'net46' as OOB for System.Net.Http on .NET Framework. However, the plan (#16805) is to stop doing OOB. So, these code changes in HttpClientHandler.net46.cs will be thrown away. |
|
@davidsh do I understand correctly that the plan is to facade the System.Net.Http.dll provided with the framework, so even when the new version of nuget package is installed, it actually reference locally installed package? What about bug fixes, how will they ship? |
|
@lmolkova bug fixes will ship with .NET Framework updates. |
|
For context, here's tracking issue to list and stop shipping OOB replacements of inbox components: #16823. |
karelz
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not touch net46 code at all. Are there any changes valuable for .NET Core?
@lmolkova Did you manually test this on NETFX app? Because I don't think it will work anyways since the DiagnosticSource stuff might not be a proper dependency on NETFX. |
| <Reference Include="System" /> | ||
| <Reference Include="System.Core" /> | ||
| <Reference Include="System.Runtime" /> | ||
| <ProjectReference Include="..\..\System.Diagnostics.DiagnosticSource\src\System.Diagnostics.DiagnosticSource.csproj" /> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should not do ProjectReferences here, there should be just a Reference.
|
@karelz @stephentoub |
…guments to buffer (#17141) * changed to buffer * More Common changes * fixed * another fix Signed-off-by: dotnet-bot-corefx-mirror <[email protected]>
…guments to buffer (#17141) * changed to buffer * More Common changes * fixed * another fix Signed-off-by: dotnet-bot-corefx-mirror <[email protected]>
This changes enables instrumentation for outgoing Http requests with DiagnosticSource and Activity API on netfx.
It was previously introduced for .net core in #16393.
/cc @vancem