Skip to content

Commit

Permalink
Adding run_id.
Browse files Browse the repository at this point in the history
  • Loading branch information
jzonthemtn committed Nov 16, 2024
1 parent 30102e3 commit 48e727c
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,7 @@
import javax.net.ssl.X509ExtendedTrustManager;
import java.net.Socket;
import java.security.cert.X509Certificate;
import java.util.Collection;
import java.util.HashMap;
import java.util.LinkedList;
import java.util.List;
import java.util.Map;
import java.util.UUID;
Expand All @@ -42,6 +40,7 @@ static boolean benchmarksEnabled() {
public void runBenchmarks() throws Exception {

final String branch = getGitBranch();
final String runId = UUID.randomUUID().toString();

final BulkRequest bulkRequest = new BulkRequest();

Expand Down Expand Up @@ -96,6 +95,7 @@ public void runBenchmarks() throws Exception {
run.put("phileas_version", System.getProperty("phileasVersion"));
run.put("branch", branch);
run.put("calls_per_second", calls);
run.put("run_id", runId);

final IndexRequest indexRequest = new IndexRequest("phileas_benchmarks");
indexRequest.id(UUID.randomUUID().toString()).source(run);
Expand Down

0 comments on commit 48e727c

Please sign in to comment.