Closed sebcante closed 2 weeks ago
is it possible to get someone to review this at all?
We have been using UDS support in production (this PR) for more than 6 months at mx51 it definitely helped us to better manage datadog agent maintenance and go apps reconnecting automatically to it. Something that UDP caused us trouble in the past. @achille-roussel any thoughts if this contribution could be merged ?
Thank you for this! We just merged this upstream and it is part of the v5.1.0 release.
Goal
Adds Support for connecting to datadog via Unix Domain socket (UDS) instead of UDP
Why
UDS could be useful :
Taken from https://docs.datadoghq.com/developers/dogstatsd/unix_socket/?tab=host ^
Usage to connect to
unixgram
socket instead ofudp
instead of
What
I hope this PR could be useful, completely open for feedbacks to align this PR to the conventions/style of this library. I gave it a first shot. I inlined comments/questions
Credit
Datadog official client lib , i inspired a lot the code from it.