12 writes to FlushInterval
Microsoft.Extensions.Telemetry.PerformanceTests (9)
BottomKCategoryPolicyBench.cs (1)
107
options.
FlushInterval
= TimeSpan.FromDays(1);
BottomKEventIdPolicyBench.cs (1)
79
options.
FlushInterval
= TimeSpan.FromDays(1);
BottomKImpactBench.cs (1)
128
options.
FlushInterval
= TimeSpan.FromDays(1);
BottomKLogLevelPolicyBench.cs (1)
79
options.
FlushInterval
= TimeSpan.FromDays(1);
CategoryCardinalityImpactBench.cs (1)
87
options.
FlushInterval
= TimeSpan.FromDays(1);
MultithreadedSamplingImpactBench.cs (1)
89
options.
FlushInterval
= TimeSpan.FromDays(1);
RetainedMemoryMeasurement.cs (1)
155
options.
FlushInterval
= TimeSpan.FromDays(1);
SerializedExporterImpactBench.cs (1)
128
options.
FlushInterval
= TimeSpan.FromDays(1);
SustainedGcPressureMeasurement.cs (1)
261
options.
FlushInterval
= flushInterval;
Microsoft.Extensions.Telemetry.Tests (3)
Sampling\BottomKLogBufferTests.cs (1)
601
FlushInterval
= TimeSpan.FromSeconds(1),
Sampling\BottomKSamplingLoggingBuilderExtensionsTests.cs (2)
113
builder.AddBottomKLogSampling(options => options.
FlushInterval
= TimeSpan.Zero));
127
FlushInterval
= TimeSpan.Zero,
4 references to FlushInterval
Microsoft.Extensions.Telemetry (4)
Sampling\BottomKLogBuffer.cs (2)
72
MaybeFlush(policy.Options.
FlushInterval
);
104
MaybeFlush(policy.Options.
FlushInterval
);
Sampling\BottomKLogSamplingOptionsCustomValidator.cs (2)
20
if (options.
FlushInterval
<= TimeSpan.Zero)
22
result.AddError("FlushInterval must be greater than zero.", nameof(options.
FlushInterval
));