4 writes to _tags
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Activity.cs (4)
503
if (_tags != null || Interlocked.CompareExchange(ref
_tags
, new TagsLinkedList(kvp), null) != null)
527
if (_tags != null || Interlocked.CompareExchange(ref
_tags
, new TagsLinkedList(kvp, set: true), null) != null)
1224
activity.
_tags
= new TagsLinkedList(enumerator);
1233
activity.
_tags
= new TagsLinkedList(samplerTags!);
10 references to _tags
System.Diagnostics.DiagnosticSource (10)
System\Diagnostics\Activity.cs (10)
345
get =>
_tags
?.EnumerateStringValues() ?? s_emptyBaggageTags;
354
get =>
_tags
?? s_emptyTagObjects;
420
public Enumerator<KeyValuePair<string, object?>> EnumerateTagObjects() => new Enumerator<KeyValuePair<string, object?>>(
_tags
?.First);
458
public object? GetTagItem(string key) =>
_tags
?.Get(key) ?? null;
503
if (
_tags
!= null || Interlocked.CompareExchange(ref _tags, new TagsLinkedList(kvp), null) != null)
505
_tags
.Add(kvp);
527
if (
_tags
!= null || Interlocked.CompareExchange(ref _tags, new TagsLinkedList(kvp, set: true), null) != null)
529
_tags
.Set(kvp);
1231
if (activity.
_tags
== null)
1237
activity.
_tags
.Add(samplerTags!);