We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 031b06c + e633b1e commit b361245Copy full SHA for b361245
library/agent/Agent.ts
@@ -357,12 +357,10 @@ export class Agent {
357
const now = performance.now();
358
const diff = now - this.lastHeartbeat;
359
const shouldSendHeartbeat = diff > this.sendHeartbeatEveryMS;
360
- const hasCompressedStats = this.statistics.hasCompressedStats();
361
const canSendInitialStats =
362
!this.serviceConfig.hasReceivedAnyStats() && !this.statistics.isEmpty();
363
const shouldReportInitialStats =
364
- !this.reportedInitialStats &&
365
- (hasCompressedStats || canSendInitialStats);
+ !this.reportedInitialStats && canSendInitialStats;
366
367
if (shouldSendHeartbeat || shouldReportInitialStats) {
368
this.heartbeat();
0 commit comments