DataDog / datadogpy

The Datadog Python library
https://datadoghq.com/
Other
614 stars 304 forks source link

[statsd] Always terminate packets with newline #685

Closed sgnn7 closed 3 years ago

sgnn7 commented 3 years ago

What does this PR do?

Adds newline (\n) to all packets sent to the DogStatsd endpoint

Description of the Change

To prevent processing of packets that are incomplete by the time they reach the server for whatever reason, we now add a newline to end of all of our packets so that the server can recognize and discard partial messages/metrics.

Alternate Designs

Possible Drawbacks

One character additionally sent with each packet (minimal impact on buffered clients)

Verification Process

Alternatively:

Additional Notes

Release Notes

N/A

Review checklist (to be filled by reviewers)

sgnn7 commented 3 years ago

/azp run

azure-pipelines[bot] commented 3 years ago
Azure Pipelines successfully started running 2 pipeline(s).