1 write to _activity
System.Net.NameResolution (1)
System\Net\NameResolutionTelemetry.cs (1)
179
_activity
= s_activitySource.StartActivity(ActivityName);
10 references to _activity
System.Net.NameResolution (10)
System\Net\NameResolutionTelemetry.cs (10)
180
if (
_activity
is not null)
183
_activity
.DisplayName = hostNameOrAddress is IPAddress ? $"DNS reverse lookup {host}" : $"DNS lookup {host}";
184
if (
_activity
.IsAllDataRequested)
186
_activity
.SetTag("dns.question.name", host);
196
if (
_activity
is not null)
198
if (
_activity
.IsAllDataRequested)
211
_activity
.SetTag("dns.answers", answerValues);
217
_activity
.SetTag("error.type", errorType);
223
_activity
.SetStatus(ActivityStatusCode.Error);
226
_activity
.Stop();