You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@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);
}
The text was updated successfully, but these errors were encountered:
@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);
}
The text was updated successfully, but these errors were encountered: