elastic / ecs-dotnet

https://www.elastic.co/guide/en/ecs-logging/dotnet/current/setup.html
Apache License 2.0
114 stars 58 forks source link

[BUG] MaxRetries / MaximumRetries configurations are not working correctly in Elastic.Serilog.Sinks #335

Open osaber12 opened 11 months ago

osaber12 commented 11 months ago

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:

  1. run project with the elasticsearch container running to make sure startup configuration is correct
  2. stop elasticsearch container
  3. do any activity that writes any logs and observe ExportExceptionCallback and ExportItemsAttemptCallback