grpc-js-xds: Log stats periodically in interop tests

This commit is contained in:
Michael Lumish 2022-10-21 15:21:19 -07:00
parent aaa568fc01
commit bcf4ce2b40

View File

@ -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 = {