mirror of https://github.com/grpc/grpc-node.git
Add more LRS tracing
This commit is contained in:
parent
8269fd4bca
commit
338941d664
|
@ -1027,7 +1027,9 @@ export class XdsClient {
|
||||||
const loadReportingIntervalMs =
|
const loadReportingIntervalMs =
|
||||||
Number.parseInt(message.load_reporting_interval!.seconds) * 1000 +
|
Number.parseInt(message.load_reporting_interval!.seconds) * 1000 +
|
||||||
message.load_reporting_interval!.nanos / 1_000_000;
|
message.load_reporting_interval!.nanos / 1_000_000;
|
||||||
|
trace('Received LRS request with load reporting interval ' + loadReportingIntervalMs + ' ms');
|
||||||
this.statsTimer = setInterval(() => {
|
this.statsTimer = setInterval(() => {
|
||||||
|
trace('Sending LRS stats');
|
||||||
this.sendStats();
|
this.sendStats();
|
||||||
}, loadReportingIntervalMs);
|
}, loadReportingIntervalMs);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue