diff --git a/megalinter/reporters/ApiReporter.py b/megalinter/reporters/ApiReporter.py index d93d374a6a4..003d2f96ba6 100644 --- a/megalinter/reporters/ApiReporter.py +++ b/megalinter/reporters/ApiReporter.py @@ -271,7 +271,7 @@ def build_metrics_payload(self): if self.master.show_elapsed_time is True: metric_line += f",elapsedTime={round(linter.elapsed_time_s, 2)}" all_metrics_lines += [metric_line] - self.metrics_payload = ",".join(all_metrics_lines) + self.metrics_payload = "\n".join(all_metrics_lines) def send_to_metrics_api(self): session = requests.Session()