Skip to content

Commit bcf4ce2

Browse files
committed
grpc-js-xds: Log stats periodically in interop tests
1 parent aaa568f commit bcf4ce2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/grpc-js-xds/interop/xds-interop-client.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -310,6 +310,9 @@ function sendConstantQps(client: TestServiceClient, qps: number, failOnFailedRpc
310310
makeSingleRequest(client, callType, failOnFailedRpcs, callStatsTracker);
311311
}
312312
}, 1000/qps);
313+
setInterval(() => {
314+
console.log(`Accumulated stats: ${JSON.stringify(accumulatedStats, undefined, 2)}`);
315+
}, 1000);
313316
}
314317

315318
const callTypeEnumMap = {

0 commit comments

Comments
 (0)