Skip to content

Commit d26478e

Browse files
authored
Don't mark throttle as error (#2079)
1 parent 60c89d2 commit d26478e

File tree

1 file changed

+2
-3
lines changed
  • agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/telemetry

1 file changed

+2
-3
lines changed

agent/agent-tooling/src/main/java/com/microsoft/applicationinsights/agent/internal/telemetry/TelemetryChannel.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,12 +348,11 @@ private void handleStatsbeatOnResponse(
348348
statsbeatModule
349349
.getNetworkStatsbeat()
350350
.incrementRequestSuccessCount(System.currentTimeMillis() - startTime, instrumentationKey);
351+
} else if (statusCode == 439) {
352+
statsbeatModule.getNetworkStatsbeat().incrementThrottlingCount(instrumentationKey);
351353
} else {
352354
statsbeatModule.getNetworkStatsbeat().incrementRequestFailureCount(instrumentationKey);
353355
}
354-
if (statusCode == 439) {
355-
statsbeatModule.getNetworkStatsbeat().incrementThrottlingCount(instrumentationKey);
356-
}
357356
}
358357

359358
private Consumer<Throwable> errorHandler(

0 commit comments

Comments
 (0)