1 implementation of Add
Microsoft.Extensions.Telemetry.Abstractions (1)
Logging\LoggerMessageState.TagCollector.cs (1)
13
void ITagCollector.
Add
(string tagName, object? tagValue)
19 references to Add
Microsoft.Extensions.Telemetry.Abstractions (1)
Logging\LoggerMessageState.TagCollector.cs (1)
28
/// <see cref="ITagCollector.
Add
(string, object?)"/> or <see cref="ITagCollector.Add(string, object?, DataClassificationSet)"/>
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Logging\LoggerMessageStateTests.cs (2)
95
collector.
Add
(PropName, Value);
113
collector.
Add
(PropName, Value);
Microsoft.Gen.Logging.Generated.Tests (16)
test\Generators\Microsoft.Gen.Logging\TestClasses\LogPropertiesOmitParameterNameExtensions.cs (2)
41
list.
Add
(nameof(MyProps.P0), param?.P0);
42
list.
Add
("Custom_property_name", param?.P1);
test\Generators\Microsoft.Gen.Logging\TestClasses\TagProviderExtensions.cs (11)
71
list.
Add
(nameof(ClassToLog.MyIntProperty), param.MyIntProperty);
72
list.
Add
("Custom_property_name", param.MyStringProperty);
79
list.
Add
("P1", p.Value.ToInvariantString());
85
list.
Add
("NestedTagProvider", v);
90
list.
Add
("Another_property_name", param?.MyStringProperty.ToUpperInvariant());
91
list.
Add
(nameof(ClassToLog.MyIntProperty) + "_test", param?.MyIntProperty);
96
list.
Add
(nameof(ClassToLog.MyIntProperty), param.MyIntProperty);
97
list.
Add
("Custom_property_name", param.MyStringProperty);
102
list.
Add
(nameof(ClassToLog.MyIntProperty), param.MyIntProperty);
103
list.
Add
("Custom_property_name", param.MyStringProperty);
111
list.
Add
($"Foo{i}", s);
test\Generators\Microsoft.Gen.Logging\TestClasses\TagProviderWithObjectExtensions.cs (3)
35
list.
Add
(nameof(object.ToString), param + " ProvidePropertiesCall");
40
list.
Add
(nameof(object.ToString), param + " ProvideOtherPropertiesCall");
41
list.
Add
("Type", param?.GetType());