From 3934e00249c4296cc0b392c6e8199746d4f359ac Mon Sep 17 00:00:00 2001 From: Bianco Veigel Date: Tue, 28 Feb 2023 18:35:22 +0100 Subject: [PATCH] carbon-clickhouse cannot handle space in front of the first datapoint so we switch to linebreaks which where successfully tested --- Graphite/PlaintextGraphiteFormatter.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Graphite/PlaintextGraphiteFormatter.cs b/Graphite/PlaintextGraphiteFormatter.cs index 610cb17..683b3be 100644 --- a/Graphite/PlaintextGraphiteFormatter.cs +++ b/Graphite/PlaintextGraphiteFormatter.cs @@ -16,9 +16,9 @@ public class PlaintextGraphiteFormatter: IGraphiteFormatter private static readonly Encoding _utfNoBom = new UTF8Encoding(false, true); /// - /// single space, will be trimmed by carbon + /// line break, will be trimmed by carbon and carbon-clickhouse /// - private static readonly byte[] _empty = {32}; + private static readonly byte[] _empty = {0x0A}; /// /// Creates a plaintext formatter with default port 2003