StatsN
StatsN copied to clipboard
Adds new line at the end of the metric's network data representation
@TerribleDev We are trying to use this library (thanks) and noticed that it adds 'new line char' to the end of the network stream, even for single metric. Due to this, metric upload failing in our environment. Per StatsD protocol, newlines used to separate when multiple metrics are transfered in single payload (not for single metric).
If you agree, I could create a PR to change the behavior.
nternal Task SendMetric(string metric) { var payload = Encoding.ASCII.GetBytes(metric + Environment.NewLine); if (Options.BufferMetrics) { .......................................... } return SendAsync(payload); }
sure np
@sanjaiganesh havn't seen any Pull requests from you yet...