4 writes to _tags
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Activity.cs (4)
473
if (_tags != null || Interlocked.CompareExchange(ref
_tags
, new TagsLinkedList(kvp), null) != null)
497
if (_tags != null || Interlocked.CompareExchange(ref
_tags
, new TagsLinkedList(kvp, set: true), null) != null)
1189
activity.
_tags
= new TagsLinkedList(enumerator);
1198
activity.
_tags
= new TagsLinkedList(samplerTags!);
10 references to _tags
System.Diagnostics.DiagnosticSource (10)
System\Diagnostics\Activity.cs (10)
321
get =>
_tags
?.EnumerateStringValues() ?? s_emptyBaggageTags;
330
get =>
_tags
?? s_emptyTagObjects;
396
public Enumerator<KeyValuePair<string, object?>> EnumerateTagObjects() => new Enumerator<KeyValuePair<string, object?>>(
_tags
?.First);
428
public object? GetTagItem(string key) =>
_tags
?.Get(key) ?? null;
473
if (
_tags
!= null || Interlocked.CompareExchange(ref _tags, new TagsLinkedList(kvp), null) != null)
475
_tags
.Add(kvp);
497
if (
_tags
!= null || Interlocked.CompareExchange(ref _tags, new TagsLinkedList(kvp, set: true), null) != null)
499
_tags
.Set(kvp);
1196
if (activity.
_tags
== null)
1202
activity.
_tags
.Add(samplerTags!);