Skip to content

Commit 3934e00

Browse files
Bianco VeigelBianco Veigel
authored andcommitted
carbon-clickhouse cannot handle space in front of the first datapoint
so we switch to linebreaks which where successfully tested
1 parent efab8d9 commit 3934e00

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Graphite/PlaintextGraphiteFormatter.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ public class PlaintextGraphiteFormatter: IGraphiteFormatter
1616
private static readonly Encoding _utfNoBom = new UTF8Encoding(false, true);
1717

1818
/// <summary>
19-
/// single space, will be trimmed by carbon
19+
/// line break, will be trimmed by carbon and carbon-clickhouse
2020
/// </summary>
21-
private static readonly byte[] _empty = {32};
21+
private static readonly byte[] _empty = {0x0A};
2222

2323
/// <summary>
2424
/// Creates a plaintext formatter with default port 2003

0 commit comments

Comments
 (0)