Skip to content

Commit

Permalink
Fix statsbeat warning (#2208)
Browse files Browse the repository at this point in the history
  • Loading branch information
trask authored Mar 25, 2022
1 parent 1713d53 commit 8096b9f
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -277,10 +277,14 @@ private void exportCurrentBatch() {
pendingExports.remove(result);
});
} else {
addAsyncExport.recordFailure(
"Max number of concurrent exports "
+ maxPendingExports
+ " has been hit, may see some export throttling due to this");
// need conditional, otherwise this will always get logged when maxPendingExports is 1
// (e.g. statsbeat)
if (maxPendingExports > 1) {
addAsyncExport.recordFailure(
"Max number of concurrent exports "
+ maxPendingExports
+ " has been hit, may see some export throttling due to this");
}
result.join(exporterTimeoutNanos, TimeUnit.NANOSECONDS);
}
} finally {
Expand Down

0 comments on commit 8096b9f

Please sign in to comment.