4 writes to _tags
System.Diagnostics.DiagnosticSource (4)
System\Diagnostics\Activity.cs (4)
490if (_tags != null || Interlocked.CompareExchange(ref _tags, new TagsLinkedList(kvp), null) != null) 514if (_tags != null || Interlocked.CompareExchange(ref _tags, new TagsLinkedList(kvp, set: true), null) != null) 1206activity._tags = new TagsLinkedList(enumerator); 1215activity._tags = new TagsLinkedList(samplerTags!);
10 references to _tags
System.Diagnostics.DiagnosticSource (10)
System\Diagnostics\Activity.cs (10)
338get => _tags?.EnumerateStringValues() ?? s_emptyBaggageTags; 347get => _tags ?? s_emptyTagObjects; 413public Enumerator<KeyValuePair<string, object?>> EnumerateTagObjects() => new Enumerator<KeyValuePair<string, object?>>(_tags?.First); 445public object? GetTagItem(string key) => _tags?.Get(key) ?? null; 490if (_tags != null || Interlocked.CompareExchange(ref _tags, new TagsLinkedList(kvp), null) != null) 492_tags.Add(kvp); 514if (_tags != null || Interlocked.CompareExchange(ref _tags, new TagsLinkedList(kvp, set: true), null) != null) 516_tags.Set(kvp); 1213if (activity._tags == null) 1219activity._tags.Add(samplerTags!);