1 write to _activity
System.Net.NameResolution (1)
System\Net\NameResolutionTelemetry.cs (1)
172
_activity
= s_activitySource.StartActivity(ActivityName);
10 references to _activity
System.Net.NameResolution (10)
System\Net\NameResolutionTelemetry.cs (10)
173
if (
_activity
is not null)
176
_activity
.DisplayName = hostNameOrAddress is IPAddress ? $"DNS reverse lookup {host}" : $"DNS lookup {host}";
177
if (
_activity
.IsAllDataRequested)
179
_activity
.SetTag("dns.question.name", host);
189
if (
_activity
is not null)
191
if (
_activity
.IsAllDataRequested)
204
_activity
.SetTag("dns.answers", answerValues);
210
_activity
.SetTag("error.type", errorType);
216
_activity
.SetStatus(ActivityStatusCode.Error);
219
_activity
.Stop();