ecs-dotnet
ecs-dotnet copied to clipboard
[BUG] MaxRetries / MaximumRetries configurations are not working correctly in Elastic.Serilog.Sinks
ECS integration/library project(s): Elastic.Serilog.Sinks **ECS schema version **: 8.6.1 ECS .NET assembly version: .net 6 Elasticsearch version (if applicable): 8.10.2 .NET framework / OS: .net 6 / windows
Description of the problem, including expected versus actual behavior: BufferOptions > ExportMaxRetries TransportConfiguration > MaximumRetries none of these configurations are working as it keeps calling ExportExceptionCallback forever and when using ExportItemsAttemptCallback the number of retries is always 0 Steps to reproduce:
- run project with the elasticsearch container running to make sure startup configuration is correct
- stop elasticsearch container
- do any activity that writes any logs and observe ExportExceptionCallback and ExportItemsAttemptCallback