disable/trim MetricsHandler when System.Diagnostics.Metrics.Meter.IsSupported is false#114326
Merged
pavelsavara merged 24 commits intodotnet:mainfrom Apr 15, 2025
Merged
Conversation
Contributor
|
Tagging subscribers to this area: @dotnet/ncl |
Member
|
cc @antonfirsov |
Contributor
There was a problem hiding this comment.
Copilot reviewed 11 out of 15 changed files in this pull request and generated 2 comments.
Files not reviewed (4)
- src/libraries/System.Net.Http/src/ILLink/ILLink.Substitutions.xml: Language not supported
- src/libraries/System.Net.Http/tests/FunctionalTests/System.Net.Http.Functional.Tests.csproj: Language not supported
- src/libraries/System.Private.CoreLib/src/ILLink/ILLink.Descriptors.EventSource.xml: Language not supported
- src/mono/sample/wasm/browser-advanced/Wasm.Advanced.Sample.csproj: Language not supported
src/libraries/System.Net.Http/src/System/Net/Http/DiagnosticsHandler.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Http/src/System/Net/Http/DiagnosticsHandler.cs
Outdated
Show resolved
Hide resolved
…andler.cs Co-authored-by: Copilot <[email protected]>
…andler.cs Co-authored-by: Copilot <[email protected]>
MihaZupan
reviewed
Apr 8, 2025
src/libraries/System.Net.Http/src/System/Net/Http/DiagnosticsHandler.cs
Outdated
Show resolved
Hide resolved
3 tasks
antonfirsov
reviewed
Apr 8, 2025
src/libraries/System.Net.Http/src/System/Net/Http/DiagnosticsHandler.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Http/src/System/Net/Http/DiagnosticsHandler.cs
Outdated
Show resolved
Hide resolved
...ystem.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectionPool/HttpConnectionWaiter.cs
Outdated
Show resolved
Hide resolved
src/libraries/System.Net.Http/src/System/Net/Http/SocketsHttpHandler/HttpConnectionBase.cs
Outdated
Show resolved
Hide resolved
Member
Author
|
Fixed. It works when there are no indirections between the trimmed property and methods that use them |
# Conflicts: # src/libraries/System.Net.Http/src/System/Net/Http/GlobalHttpSettings.cs
antonfirsov
reviewed
Apr 11, 2025
src/libraries/System.Net.Http/src/System/Net/Http/GlobalHttpSettings.cs
Outdated
Show resolved
Hide resolved
antonfirsov
reviewed
Apr 11, 2025
src/libraries/System.Net.Http/tests/TrimmingTests/MetricsHandlerTrimmedTest.cs
Show resolved
Hide resolved
antonfirsov
approved these changes
Apr 14, 2025
...ystem.Net.Http/src/System/Net/Http/SocketsHttpHandler/ConnectionPool/HttpConnectionWaiter.cs
Outdated
Show resolved
Hide resolved
…andler/ConnectionPool/HttpConnectionWaiter.cs Co-authored-by: Anton Firszov <[email protected]>
antonfirsov
approved these changes
Apr 15, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
System.Diagnostics.Metrics.Meter.IsSupportedto disable/trimMetricsHandlerSystem.Net.Http.EnableActivityPropagationto disable/trimDiagnosticsHandler