diff --git a/agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/telemetry/BatchSpanProcessor.java b/agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/telemetry/BatchSpanProcessor.java index b57bb7c749e..ec79b634aca 100644 --- a/agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/telemetry/BatchSpanProcessor.java +++ b/agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/telemetry/BatchSpanProcessor.java @@ -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 {