4 references to NameResolutionMetrics
System.Net.NameResolution (4)
System\Net\NameResolutionTelemetry.cs (4)
69
public static bool AnyDiagnosticsEnabled() => !OperatingSystem.IsWasi() && (Log.IsEnabled() ||
NameResolutionMetrics
.IsEnabled() || NameResolutionActivity.IsTracingEnabled());
94
startingTimestamp = startingTimestamp is not 0 ? startingTimestamp :
NameResolutionMetrics
.IsEnabled() ? Stopwatch.GetTimestamp() : 0;
126
if (
NameResolutionMetrics
.IsEnabled())
128
NameResolutionMetrics
.AfterResolution(duration, GetHostnameFromStateObject(hostNameOrAddress), exception);