Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 93355de

Browse files
committed
Add namespace parameter for bench
1 parent c625777 commit 93355de

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

packages/test/src/bench.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ async function main() {
7474
'--concurrent-wf-clients': Number,
7575
'--log-level': String,
7676
'--server-address': String,
77+
'--namespace': String,
7778
});
7879
const workflowName = args['--workflow'] || 'cancel-fake-progress';
7980
const iterations = args['--iterations'] || 1000;
@@ -82,6 +83,7 @@ async function main() {
8283
const concurrentWFClients = args['--concurrent-wf-clients'] || 100;
8384
const logLevel = (args['--log-level'] || 'INFO').toUpperCase();
8485
const serverAddress = args['--server-address'] || 'http://localhost:7233';
86+
const namespace = args['--namespace'] || `bench-${new Date().toISOString()}`;
8587
const serverUrl = new URL(serverAddress);
8688

8789
// In order for JaegerExporter to transmit packets correctly, increase net.inet.udp.maxdgram to 65536.
@@ -93,7 +95,6 @@ async function main() {
9395
traceExporter: jaegerExporter,
9496
});
9597
await otel.start();
96-
const namespace = `bench-${new Date().toISOString()}`;
9798
const taskQueue = 'bench';
9899
const connection = new Connection({ address: serverUrl.host }, { namespace });
99100

0 commit comments

Comments
 (0)