Add more LRS tracing

This commit is contained in:
Michael Lumish 2020-08-28 10:06:57 -07:00
parent 8269fd4bca
commit 338941d664
1 changed files with 2 additions and 0 deletions

View File

@ -1027,7 +1027,9 @@ export class XdsClient {
const loadReportingIntervalMs =
Number.parseInt(message.load_reporting_interval!.seconds) * 1000 +
message.load_reporting_interval!.nanos / 1_000_000;
trace('Received LRS request with load reporting interval ' + loadReportingIntervalMs + ' ms');
this.statsTimer = setInterval(() => {
trace('Sending LRS stats');
this.sendStats();
}, loadReportingIntervalMs);
}