1 instantiation of NameResolutionActivity
System.Net.NameResolution (1)
System\Net\NameResolutionTelemetry.cs (1)
88
return new
NameResolutionActivity
(hostNameOrAddress, startingTimestamp);
17 references to NameResolutionActivity
System.Net.NameResolution (17)
System\Net\Dns.cs (14)
20
NameResolutionActivity
activity = NameResolutionTelemetry.Log.BeforeResolution(string.Empty);
383
private static IPHostEntry GetHostEntryCore(string hostName, AddressFamily addressFamily,
NameResolutionActivity
? activityOrDefault = default) =>
386
private static IPAddress[] GetHostAddressesCore(string hostName, AddressFamily addressFamily,
NameResolutionActivity
? activityOrDefault = default) =>
389
private static object GetHostEntryOrAddressesCore(string hostName, bool justAddresses, AddressFamily addressFamily,
NameResolutionActivity
? activityOrDefault = default)
394
NameResolutionActivity
activity = activityOrDefault ?? NameResolutionTelemetry.Log.BeforeResolution(hostName);
427
private static IPHostEntry GetHostEntryCore(IPAddress address, AddressFamily addressFamily,
NameResolutionActivity
? activityOrDefault = default) =>
430
private static IPAddress[] GetHostAddressesCore(IPAddress address, AddressFamily addressFamily,
NameResolutionActivity
? activityOrDefault = default) =>
434
private static object GetHostEntryOrAddressesCore(IPAddress address, bool justAddresses, AddressFamily addressFamily,
NameResolutionActivity
? activityOrDefault = default)
444
NameResolutionActivity
activity = activityOrDefault ?? NameResolutionTelemetry.Log.BeforeResolution(address);
617
NameResolutionActivity
activity = NameResolutionTelemetry.Log.BeforeResolution(hostName, startingTimeStamp);
657
private static bool LogFailure(object hostNameOrAddress, in
NameResolutionActivity
activity, Exception exception)
677
private static Task<TResult> RunAsync<TResult>(Func<object,
NameResolutionActivity
, TResult> func, object key, CancellationToken cancellationToken)
679
bool tracingEnabled =
NameResolutionActivity
.IsTracingEnabled();
681
NameResolutionActivity
activity = NameResolutionTelemetry.Log.BeforeResolution(key);
System\Net\NameResolutionTelemetry.cs (3)
62
public static bool AnyDiagnosticsEnabled() => !OperatingSystem.IsWasi() && (Log.IsEnabled() || NameResolutionMetrics.IsEnabled() ||
NameResolutionActivity
.IsTracingEnabled());
65
public
NameResolutionActivity
BeforeResolution(object hostNameOrAddress, long startingTimestamp = 0)
92
public void AfterResolution(object hostNameOrAddress, in
NameResolutionActivity
activity, object? answer, Exception? exception = null)