Skip to content

Conversation

@jonathanpeppers
Copy link
Member

Context: #9060 (comment)
Context: https://github.com/dotnet/sdk/blob/e18cfb7a09d74952d5e9c2448d31dee313e059bb/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets#L522-L525

In eb6397d, we introduced $(_SystemDiagnosticsMetricsMeterIsSupported) to avoid a startup time regression with HttpClient-related code. At the time, the public property $(MetricsSupport) had not been introduced yet in the .NET SDK.

Let's use $(MetricsSupport) instead of the private $(_SystemDiagnosticsMetricsMeterIsSupported) property.

Context: dotnet#9060 (comment)
Context: https://github.com/dotnet/sdk/blob/e18cfb7a09d74952d5e9c2448d31dee313e059bb/src/Tasks/Microsoft.NET.Build.Tasks/targets/Microsoft.NET.Sdk.targets#L522-L525

In eb6397d, we introduced `$(_SystemDiagnosticsMetricsMeterIsSupported)`
to avoid a startup time regression with `HttpClient`-related code. At
the time, the public property `$(MetricsSupport)` had not been
introduced yet in the .NET SDK.

Let's use `$(MetricsSupport)` instead of the private
`$(_SystemDiagnosticsMetricsMeterIsSupported)` property.
@jonathanpeppers jonathanpeppers marked this pull request as ready for review July 1, 2024 18:03
@jonathanpeppers jonathanpeppers merged commit 200f843 into dotnet:main Jul 1, 2024
@jonathanpeppers jonathanpeppers deleted the MetricsSupport branch July 1, 2024 21:45
grendello added a commit that referenced this pull request Jul 5, 2024
* main:
  [tests] verify trimmer warnings where appropriate (#9076)
  Bump to jbevain/cecil@8c123e1 (#9078)
  [trimming] remove `$(NullabilityInfoContextSupport)` (#9069)
  [build] Bump `$(XABuildToolsVersion)`=35 (#9071)
  [ci] Move PR build to shared pool (#8854)
  Use AsyncTask from xamarin-android-tools (#9017)
  Bump to dotnet/sdk@02c06d398a 9.0.100-preview.7.24351.1 (#9067)
  [trimming] use public `$(MetricsSupport)` property (#9068)
  [ci] Update resourceManagement.yml (#9070)
  Bump to dotnet/android-api-docs@c14203771a (#8992)
  [trimming] remove `$(_AggressiveAttributeTrimming)` by default (#9062)
@github-actions github-actions bot locked and limited conversation to collaborators Aug 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants