15 instantiations of LoggerEnrichmentOptions
Microsoft.Extensions.Telemetry (2)
Logging\ExtendedLoggerFactory.cs (2)
110
Config = ComputeConfig(enrichmentOptions?.CurrentValue ??
new
(), redactionOptions?.CurrentValue ?? new() { ApplyDiscriminator = false });
285
enrichmentOptions = new
LoggerEnrichmentOptions
Microsoft.Extensions.Telemetry.Tests (13)
Logging\ExtendedLoggerTests.cs (10)
48
var enrichmentOptions = enableEnrichment ? new StaticOptionsMonitor<LoggerEnrichmentOptions>(
new
()) : null;
176
enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(
new
()),
241
enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(
new
()),
302
enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(
new
()),
344
enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(
new
()),
374
enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(
new
()),
407
enrichmentOptions: new StaticOptionsMonitor<LoggerEnrichmentOptions>(
new
()),
430
var stackTraceOptions = new
LoggerEnrichmentOptions
818
var enrichmentOptions = enableEnrichment ? new StaticOptionsMonitor<LoggerEnrichmentOptions>(
new
()) : null;
870
var enrichmentOptions = enableEnrichment ? new StaticOptionsMonitor<LoggerEnrichmentOptions>(
new
()) : null;
Logging\LoggerEnrichmentOptionsTests.cs (2)
16
var o = new
LoggerEnrichmentOptions
();
32
var o = new
LoggerEnrichmentOptions
();
Logging\SerialExtendedLoggerTests.cs (1)
23
var stackTraceOptions = new
LoggerEnrichmentOptions
();
23 references to LoggerEnrichmentOptions
Microsoft.Extensions.Telemetry (8)
Logging\ExtendedLoggerFactory.cs (3)
48
IOptionsMonitor<
LoggerEnrichmentOptions
>? enrichmentOptions = null,
281
private LoggerConfig ComputeConfig(
LoggerEnrichmentOptions
? enrichmentOptions, LoggerRedactionOptions? redactionOptions)
318
private void UpdateEnrichmentOptions(
LoggerEnrichmentOptions
enrichmentOptions) => Config = ComputeConfig(enrichmentOptions, null);
Logging\LoggerEnrichmentOptionsValidator.cs (1)
9
internal sealed partial class LoggerEnrichmentOptionsValidator : IValidateOptions<
LoggerEnrichmentOptions
>
Logging\LoggingEnrichmentExtensions.cs (4)
32
public static ILoggingBuilder EnableEnrichment(this ILoggingBuilder builder, Action<
LoggerEnrichmentOptions
> configure)
40
.AddOptionsWithValidateOnStart<
LoggerEnrichmentOptions
, LoggerEnrichmentOptionsValidator>();
49
/// <param name="section">Configuration section that contains <see cref="
LoggerEnrichmentOptions
"/>.</param>
58
.AddOptionsWithValidateOnStart<
LoggerEnrichmentOptions
, LoggerEnrichmentOptionsValidator>().Bind(section);
Microsoft.Extensions.Telemetry.Tests (15)
Logging\ExtendedLoggerTests.cs (11)
48
var enrichmentOptions = enableEnrichment ? new StaticOptionsMonitor<
LoggerEnrichmentOptions
>(new()) : null;
176
enrichmentOptions: new StaticOptionsMonitor<
LoggerEnrichmentOptions
>(new()),
241
enrichmentOptions: new StaticOptionsMonitor<
LoggerEnrichmentOptions
>(new()),
302
enrichmentOptions: new StaticOptionsMonitor<
LoggerEnrichmentOptions
>(new()),
344
enrichmentOptions: new StaticOptionsMonitor<
LoggerEnrichmentOptions
>(new()),
374
enrichmentOptions: new StaticOptionsMonitor<
LoggerEnrichmentOptions
>(new()),
407
enrichmentOptions: new StaticOptionsMonitor<
LoggerEnrichmentOptions
>(new()),
430
var
stackTraceOptions = new LoggerEnrichmentOptions
441
enrichmentOptions: new StaticOptionsMonitor<
LoggerEnrichmentOptions
>(stackTraceOptions),
818
var enrichmentOptions = enableEnrichment ? new StaticOptionsMonitor<
LoggerEnrichmentOptions
>(new()) : null;
870
var enrichmentOptions = enableEnrichment ? new StaticOptionsMonitor<
LoggerEnrichmentOptions
>(new()) : null;
Logging\LoggerEnrichmentOptionsTests.cs (2)
16
var
o = new LoggerEnrichmentOptions();
32
var
o = new LoggerEnrichmentOptions();
Logging\SerialExtendedLoggerTests.cs (2)
23
var
stackTraceOptions = new LoggerEnrichmentOptions();
43
enrichmentOptions: new StaticOptionsMonitor<
LoggerEnrichmentOptions
>(stackTraceOptions),