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