4 implementations of IEnrichmentTagCollector
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (1)
Logging\TestLogEnrichmentTagCollector.cs (1)
9public class TestLogEnrichmentTagCollector : IEnrichmentTagCollector
Microsoft.Extensions.Telemetry.Abstractions (1)
Logging\LoggerMessageState.EnrichmentTagCollector.cs (1)
8public partial class LoggerMessageState : IEnrichmentTagCollector
Microsoft.Extensions.Telemetry.Tests (2)
Enrichment\Internals\TestLogEnrichmentTagCollector.cs (1)
8public class TestLogEnrichmentTagCollector : IEnrichmentTagCollector
Enrichment\Internals\TestMetricEnrichmentTagCollector.cs (1)
8public class TestMetricEnrichmentTagCollector : IEnrichmentTagCollector
50 references to IEnrichmentTagCollector
Microsoft.Analyzers.Extra.Tests (1)
UsingToStringInLoggersTests.cs (1)
19Assembly.GetAssembly(typeof(IEnrichmentTagCollector))!,
Microsoft.AspNetCore.Diagnostics.Middleware (2)
Logging\IHttpLogEnricher.cs (1)
24void Enrich(IEnrichmentTagCollector collector, HttpContext httpContext);
Logging\RequestHeadersLogEnricher.cs (1)
47public void Enrich(IEnrichmentTagCollector collector)
Microsoft.AspNetCore.Diagnostics.Middleware.Tests (3)
Logging\AcceptanceTests.cs (1)
758public void Enrich(IEnrichmentTagCollector collector, HttpContext httpContext) => throw new InvalidOperationException();
Logging\CustomHttpLogEnricher.cs (1)
19public void Enrich(IEnrichmentTagCollector collector, HttpContext httpContext)
Logging\TestHttpLogEnricher.cs (1)
19public void Enrich(IEnrichmentTagCollector collector, HttpContext httpContext)
Microsoft.Extensions.Http.Diagnostics (2)
Latency\Internal\HttpClientLatencyLogEnricher.cs (1)
35public void Enrich(IEnrichmentTagCollector collector, HttpRequestMessage request, HttpResponseMessage? response, Exception? exception)
Logging\IHttpClientLogEnricher.cs (1)
26void Enrich(IEnrichmentTagCollector collector, HttpRequestMessage request, HttpResponseMessage? response, Exception? exception);
Microsoft.Extensions.Http.Diagnostics.PerformanceTests (1)
BenchEnricher.cs (1)
15public void Enrich(IEnrichmentTagCollector collector, HttpRequestMessage request, HttpResponseMessage? response, Exception? exception)
Microsoft.Extensions.Http.Diagnostics.Tests (19)
Latency\Internal\HttpClientLatencyLogEnricherTest.cs (6)
29Mock<IEnrichmentTagCollector> mockEnrichmentPropertyBag = new Mock<IEnrichmentTagCollector>(); 48Mock<IEnrichmentTagCollector> mockEnrichmentPropertyBag = new Mock<IEnrichmentTagCollector>(); 70Mock<IEnrichmentTagCollector> mockEnrichmentPropertyBag = new Mock<IEnrichmentTagCollector>();
Logging\HttpClientLoggerTest.cs (10)
699enricher1.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1)); 700enricher2.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1)); 742enricher1.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1)); 743enricher2.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1)); 752.Setup(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>())) 785enricher1.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1)); 786enricher2.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1)); 795.Setup(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>())) 831enricher1.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1)); 832enricher2.Verify(e => e.Enrich(It.IsAny<IEnrichmentTagCollector>(), It.IsAny<HttpRequestMessage>(), It.IsAny<HttpResponseMessage>(), It.IsAny<Exception>()), Times.Exactly(1));
Logging\Internal\EmptyEnricher.cs (1)
12public void Enrich(IEnrichmentTagCollector collector, HttpRequestMessage request, HttpResponseMessage? response, Exception? exception)
Logging\Internal\EnricherWithCounter.cs (1)
14public void Enrich(IEnrichmentTagCollector collector, HttpRequestMessage request, HttpResponseMessage? response, Exception? exception)
Logging\Internal\TestEnricher.cs (1)
29public void Enrich(IEnrichmentTagCollector tagCollector, HttpRequestMessage request, HttpResponseMessage? response, Exception? exception)
Microsoft.Extensions.Telemetry (8)
Enrichment\ApplicationLogEnricher.cs (1)
26public void Enrich(IEnrichmentTagCollector collector)
Enrichment\ProcessLogEnricher.cs (1)
27public void Enrich(IEnrichmentTagCollector collector)
Enrichment\StaticProcessLogEnricher.cs (1)
34public void Enrich(IEnrichmentTagCollector collector)
Logging\ExtendedLogger.EnrichmentTagCollector.cs (1)
14internal sealed class EnrichmentTagCollector(List<KeyValuePair<string, object?>> extraTags) : IEnrichmentTagCollector
Logging\ExtendedLoggerFactory.cs (2)
25private readonly Action<IEnrichmentTagCollector>[] _enrichers; 76_enrichers = enrichers.Select<ILogEnricher, Action<IEnrichmentTagCollector>>(e => e.Enrich).ToArray();
Logging\LoggerConfig.cs (2)
17Action<IEnrichmentTagCollector>[] enrichers, 37public Action<IEnrichmentTagCollector>[] Enrichers { get; }
Microsoft.Extensions.Telemetry.Abstractions (3)
Enrichment\ILogEnricher.cs (1)
15void Enrich(IEnrichmentTagCollector collector);
Enrichment\IStaticLogEnricher.cs (1)
15void Enrich(IEnrichmentTagCollector collector);
Logging\LoggerMessageState.EnrichmentTagCollector.cs (1)
11void IEnrichmentTagCollector.Add(string key, object value)
Microsoft.Extensions.Telemetry.Abstractions.Tests (4)
Enrichment\EnricherExtensionsTests.cs (2)
73public void Enrich(IEnrichmentTagCollector collector) 81public void Enrich(IEnrichmentTagCollector collector)
Logging\LoggerMessageStateTests.cs (2)
72var collector = (IEnrichmentTagCollector)lms;
Microsoft.Extensions.Telemetry.Tests (3)
Logging\ExtendedLoggerTests.cs (2)
902public void Enrich(IEnrichmentTagCollector enrichmentPropertyBag) 922public void Enrich(IEnrichmentTagCollector collector)
Logging\SerialExtendedLoggerTests.cs (1)
83public void Enrich(IEnrichmentTagCollector enrichmentPropertyBag)
Microsoft.Gen.Logging.Unit.Tests (4)
AttributeParserTests.cs (1)
239var enrichmentAssembly = Assembly.GetAssembly(typeof(IEnrichmentTagCollector));
CompilationHelper.cs (1)
34refs.Add(MetadataReference.CreateFromFile(typeof(IEnrichmentTagCollector).Assembly.Location));
EmitterTests.cs (1)
43Assembly.GetAssembly(typeof(IEnrichmentTagCollector))!,
ParserTests.cs (1)
725Assembly.GetAssembly(typeof(IEnrichmentTagCollector))!,