13 instantiations of LoggerEnrichmentOptions
Microsoft.Extensions.Telemetry (2)
Logging\ExtendedLoggerFactory.cs (2)
93Config = ComputeConfig(enrichmentOptions?.CurrentValue ?? new(), redactionOptions?.CurrentValue ?? new() { ApplyDiscriminator = false }); 268enrichmentOptions = new LoggerEnrichmentOptions
Microsoft.Extensions.Telemetry.Tests (11)
Logging\ExtendedLoggerTests.cs (8)
43var enrichmentOptions = enableEnrichment ? new StaticOptionsMonitor<LoggerEnrichmentOptions>(new()) : null; 139enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(new()), 204enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(new()), 265enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(new()), 307enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(new()), 337enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(new()), 370enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(new()), 393var stackTraceOptions = new LoggerEnrichmentOptions
Logging\LoggerEnrichmentOptionsTests.cs (2)
16var o = new LoggerEnrichmentOptions(); 32var o = new LoggerEnrichmentOptions();
Logging\SerialExtendedLoggerTests.cs (1)
23var stackTraceOptions = new LoggerEnrichmentOptions();
21 references to LoggerEnrichmentOptions
Microsoft.Extensions.Telemetry (8)
Logging\ExtendedLoggerFactory.cs (3)
40IOptionsMonitor<LoggerEnrichmentOptions>? enrichmentOptions = null, 264private LoggerConfig ComputeConfig(LoggerEnrichmentOptions? enrichmentOptions, LoggerRedactionOptions? redactionOptions) 295private void UpdateEnrichmentOptions(LoggerEnrichmentOptions enrichmentOptions) => Config = ComputeConfig(enrichmentOptions, null);
Logging\LoggerEnrichmentOptionsValidator.cs (1)
9internal sealed partial class LoggerEnrichmentOptionsValidator : IValidateOptions<LoggerEnrichmentOptions>
Logging\LoggingEnrichmentExtensions.cs (4)
32public static ILoggingBuilder EnableEnrichment(this ILoggingBuilder builder, Action<LoggerEnrichmentOptions> configure) 39_ = builder.Services.AddOptionsWithValidateOnStart<LoggerEnrichmentOptions, LoggerEnrichmentOptionsValidator>(); 48/// <param name="section">Configuration section that contains <see cref="LoggerEnrichmentOptions"/>.</param> 56_ = builder.Services.AddOptionsWithValidateOnStart<LoggerEnrichmentOptions, LoggerEnrichmentOptionsValidator>().Bind(section);
Microsoft.Extensions.Telemetry.Tests (13)
Logging\ExtendedLoggerTests.cs (9)
43var enrichmentOptions = enableEnrichment ? new StaticOptionsMonitor<LoggerEnrichmentOptions>(new()) : null; 139enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(new()), 204enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(new()), 265enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(new()), 307enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(new()), 337enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(new()), 370enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(new()), 393var stackTraceOptions = new LoggerEnrichmentOptions 404enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(stackTraceOptions),
Logging\LoggerEnrichmentOptionsTests.cs (2)
16var o = new LoggerEnrichmentOptions(); 32var o = new LoggerEnrichmentOptions();
Logging\SerialExtendedLoggerTests.cs (2)
23var stackTraceOptions = new LoggerEnrichmentOptions(); 43enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(stackTraceOptions),