DataDog / serilog-sinks-datadog-logs

Serilog Sink that sends log events to Datadog https://www.datadoghq.com/
Apache License 2.0
60 stars 41 forks source link

Provide response object in exception #94

Closed cdhunt closed 1 year ago

cdhunt commented 1 year ago

I'm experiencing the Coud not send payload to Datadog exception, but with just the payload included in the exception, I have no idea why delivery is failing. Could you add more information to the message thrown?

https://github.com/DataDog/serilog-sinks-datadog-logs/blob/cf48ff8d9c495b8cff1920ff128ec27ada9a5567/src/Serilog.Sinks.Datadog.Logs/Sinks/Datadog/DatadogHttpClient.cs#L103

gh123man commented 1 year ago

Hi @cdhunt Thanks for the feedback. I'll work on improving this error. Will probably include the last exception thrown from the retry loop.