in src/Elastic.Serilog.Sinks/ConfigSinkExtensions.cs [133:151]
private static void SetBufferOptions(ElasticsearchSinkOptions sinkOptions, int? maxRetries, int? maxConcurrency, int? maxInflight, int? maxExportSize,
TimeSpan? maxLifeTime, BoundedChannelFullMode? fullMode
) =>
sinkOptions.ConfigureChannel = channelOpts =>
{
var b = channelOpts.BufferOptions;
if (maxRetries.HasValue)
b.ExportMaxRetries = maxRetries.Value;
if (maxConcurrency.HasValue)
b.ExportMaxConcurrency = maxConcurrency.Value;
if (maxInflight.HasValue)
b.InboundBufferMaxSize = maxInflight.Value;
if (maxExportSize.HasValue)
b.OutboundBufferMaxSize = maxExportSize.Value;
if (maxLifeTime.HasValue)
b.OutboundBufferMaxLifetime = maxLifeTime.Value;
if (fullMode.HasValue)
b.BoundedChannelFullMode = fullMode.Value;
};