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 2f78ce1 commit 4b7b934
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ def record_to_clickhouse(self, event_type, extra) -> None:
log.info(extra)
insert = f"INSERT INTO {self.ch_runs_table} (run_id, event_type, extra) FORMAT TSV "

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

0 comments on commit 4b7b934

Please sign in to comment.