Add System.Net.NameResolution metrics (#88773)
authorMiha Zupan <mihazupan.zupan1@gmail.com>
Sat, 15 Jul 2023 18:37:53 +0000 (20:37 +0200)
committerGitHub <noreply@github.com>
Sat, 15 Jul 2023 18:37:53 +0000 (11:37 -0700)
commit2a7ba8a99e605ca5866d9467d85044ca63c7e410
treefbbfd5061740a2d389b24effe27739559ff24f24
parent7980421b2c2a8cc21c2060f831b8020ef0517632
Add System.Net.NameResolution metrics (#88773)

* Add System.Net.NameResolution metrics

* Avoid potential race condition in test

* Fix metrics counter firing twice when called from RunAsync without telemetry

* Add an extra assert

* More RemoteExecutor
src/libraries/System.Net.NameResolution/src/System.Net.NameResolution.csproj
src/libraries/System.Net.NameResolution/src/System/Net/Dns.cs
src/libraries/System.Net.NameResolution/src/System/Net/NameResolutionMetrics.cs [new file with mode: 0644]
src/libraries/System.Net.NameResolution/src/System/Net/NameResolutionTelemetry.cs
src/libraries/System.Net.NameResolution/tests/FunctionalTests/MetricsTest.cs [new file with mode: 0644]
src/libraries/System.Net.NameResolution/tests/FunctionalTests/System.Net.NameResolution.Functional.Tests.csproj
src/libraries/System.Net.NameResolution/tests/FunctionalTests/TelemetryTest.cs