From bcf4ce2b401b7a1d399b19b1fd8d9fe89fc14ebe Mon Sep 17 00:00:00 2001 From: Michael Lumish Date: Fri, 21 Oct 2022 15:21:19 -0700 Subject: [PATCH] grpc-js-xds: Log stats periodically in interop tests --- packages/grpc-js-xds/interop/xds-interop-client.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/grpc-js-xds/interop/xds-interop-client.ts b/packages/grpc-js-xds/interop/xds-interop-client.ts index 029525a45..59c505b46 100644 --- a/packages/grpc-js-xds/interop/xds-interop-client.ts +++ b/packages/grpc-js-xds/interop/xds-interop-client.ts @@ -310,6 +310,9 @@ function sendConstantQps(client: TestServiceClient, qps: number, failOnFailedRpc makeSingleRequest(client, callType, failOnFailedRpcs, callStatsTracker); } }, 1000/qps); + setInterval(() => { + console.log(`Accumulated stats: ${JSON.stringify(accumulatedStats, undefined, 2)}`); + }, 1000); } const callTypeEnumMap = {