Closed yuwaMSFT2 closed 1 year ago
Hi @yuwaMSFT2 ,
I have opened a new PR: https://github.com/DataDog/serilog-sinks-datadog-logs/pull/51. You can get the list of LogEvent
that are not sent successfully (CannotSendLogEventException.LogEvents
).
Does it help you for this issue?
Thanks @ogaca-dd! Yes this will help for sure!
Serilog.Sinks.Datadog.Logs 0.3.3 includes https://github.com/DataDog/serilog-sinks-datadog-logs/pull/51 which help in handling ingestion failure.
For applications that want to handle the logs reliably, they need to have a way to know any ingestion failures. In current code base, after the datadog sink retries several times, it gives up and discard the data (with a error tracing). This gives difficulty for the application to handle the error.
Is it possible to add a callback on ingestion failure?