4 writes to _tags
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Activity.cs (4)
499
if (_tags != null || Interlocked.CompareExchange(ref
_tags
, new TagsLinkedList(kvp), null) != null)
523
if (_tags != null || Interlocked.CompareExchange(ref
_tags
, new TagsLinkedList(kvp, set: true), null) != null)
1217
activity.
_tags
= new TagsLinkedList(enumerator);
1226
activity.
_tags
= new TagsLinkedList(samplerTags!);
10 references to _tags
System.Diagnostics.DiagnosticSource (10)
System\Diagnostics\Activity.cs (10)
341
get =>
_tags
?.EnumerateStringValues() ?? s_emptyBaggageTags;
350
get =>
_tags
?? s_emptyTagObjects;
416
public Enumerator<KeyValuePair<string, object?>> EnumerateTagObjects() => new Enumerator<KeyValuePair<string, object?>>(
_tags
?.First);
454
public object? GetTagItem(string key) =>
_tags
?.Get(key) ?? null;
499
if (
_tags
!= null || Interlocked.CompareExchange(ref _tags, new TagsLinkedList(kvp), null) != null)
501
_tags
.Add(kvp);
523
if (
_tags
!= null || Interlocked.CompareExchange(ref _tags, new TagsLinkedList(kvp, set: true), null) != null)
525
_tags
.Set(kvp);
1224
if (activity.
_tags
== null)
1230
activity.
_tags
.Add(samplerTags!);