4 implementations of Add
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\TestLogEnrichmentTagCollector.cs (1)
26public void Add(string tagName, object tagValue)
Microsoft.Extensions.Telemetry.Abstractions (1)
Logging\LoggerMessageState.EnrichmentTagCollector.cs (1)
11void IEnrichmentTagCollector.Add(string key, object value)
Microsoft.Extensions.Telemetry.Tests (2)
Enrichment\Internals\TestLogEnrichmentTagCollector.cs (1)
25public void Add(string tagName, object tagValue)
Enrichment\Internals\TestMetricEnrichmentTagCollector.cs (1)
25public void Add(string tagName, object tagValue)
20 references to Add
Microsoft.AspNetCore.Diagnostics.Middleware (1)
Logging\RequestHeadersLogEnricher.cs (1)
73collector.Add(_normalizedHeaders[i], redacted);
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (4)
Logging\CustomHttpLogEnricher.cs (2)
21collector.Add(Key1, Value1); 22collector.Add(Key2, Value2);
Logging\TestHttpLogEnricher.cs (2)
21collector.Add(Key1, Value1); 22collector.Add(Key2, Value2);
Microsoft.Extensions.Http.Diagnostics (1)
Latency\Internal\HttpClientLatencyLogEnricher.cs (1)
53collector.Add("LatencyInfo", stringBuilder.ToString());
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
BenchEnricher.cs (1)
19collector.Add(Key, Value);
Microsoft.Extensions.Http.Diagnostics.Tests (5)
Latency\Internal\HttpClientLatencyLogEnricherTest.cs (3)
31mockEnrichmentPropertyBag.Verify(m => m.Add(It.IsAny<string>(), It.IsAny<object>()), Times.Never); 51mockEnrichmentPropertyBag.Verify(m => m.Add(It.Is<string>(s => s.Equals("LatencyInfo")), It.Is<string>(s => s.Contains("a/b"))), Times.Once); 73mockEnrichmentPropertyBag.Verify(m => m.Add(It.Is<string>(s => s.Equals("LatencyInfo")), It.Is<string>(s => s.Contains("a/b") && s.Contains(serverName))), Times.Once);
Logging\Internal\TestEnricher.cs (2)
38tagCollector.Add(KvpRequest.Key, KvpRequest.Value!); 43tagCollector.Add(KvpResponse.Key, KvpResponse.Value!);
Microsoft.Extensions.Telemetry (3)
Enrichment\ApplicationLogEnricher.cs (1)
30collector.Add(kvp.Key, kvp.Value);
Enrichment\ProcessLogEnricher.cs (1)
35collector.Add(ProcessEnricherTagNames.ThreadId, _threadId);
Enrichment\StaticProcessLogEnricher.cs (1)
38collector.Add(ProcessEnricherTagNames.ProcessId, _processId);
Microsoft.Extensions.Telemetry.Abstractions.Tests (2)
Enrichment\EnricherExtensionsTests.cs (1)
83collector.Add("testKey", "testValue");
Logging\LoggerMessageStateTests.cs (1)
74collector.Add("K1", "V1");
Microsoft.Extensions.Telemetry.Tests (3)
Logging\ExtendedLoggerTests.cs (3)
906enrichmentPropertyBag.Add(kvp.Key, kvp.Value!); 929collector.Add(kvp.Key, kvp.Value); 943collector.Add(kvp.Key, kvp.Value);