From 9a24cf73ccd0db792d8f293d96ebd6d448273d57 Mon Sep 17 00:00:00 2001 From: Adam Wegrzynek Date: Tue, 4 Apr 2023 14:10:02 +0200 Subject: [PATCH] [OMON-662] Fix send with run method (#318) --- src/Backends/InfluxDB.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Backends/InfluxDB.cxx b/src/Backends/InfluxDB.cxx index 2d272615..70ed84c4 100644 --- a/src/Backends/InfluxDB.cxx +++ b/src/Backends/InfluxDB.cxx @@ -86,7 +86,7 @@ void InfluxDB::send(const Metric& metric) void InfluxDB::sendWithRun(const Metric& metric, const std::string& envId, const std::string& run) { auto serialized = toInfluxLineProtocol(metric); - serialized.insert(serialized.find(',') + 1, "run=" + run + ",envId=" + envId); + serialized.insert(serialized.find(' ') , ",run=" + run + ",envId=" + envId); mTransport->send(std::move(serialized)); }