Skip to content

Commit

Permalink
feat: Store load test run
Browse files Browse the repository at this point in the history
Allows the monitor to wait until the run starts and share the run id with the load test script.
  • Loading branch information
bmtcril committed Mar 25, 2024
1 parent 4b7b934 commit 1b507d2
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ def record_to_clickhouse(self, event_type, extra) -> None:
Send the run events to ClickHouse.
"""
log.info(extra)
insert = f"INSERT INTO {self.ch_runs_table} (run_id, event_type, extra) FORMAT TSV "
insert = f"INSERT INTO {self.ch_runs_table} (run_id, event_type, extra) FORMAT CSV "

output = io.StringIO(newline="\n")
writer = csv.writer(output, dialect="excel-tab")
output = io.StringIO()
writer = csv.writer(output)
writer.writerow((self.run_id, event_type, json.dumps(extra)))
print(output.getvalue().encode("utf-8"))

Expand Down

0 comments on commit 1b507d2

Please sign in to comment.