Skip to content

Commit 5af43ab

Browse files
authored
fix: report status (#258)
1 parent 17daf39 commit 5af43ab

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

arex-agent-core/src/main/java/io/arex/agent/instrumentation/BaseAgentInstaller.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,19 +52,20 @@ public void install() {
5252
Thread.currentThread().setContextClassLoader(getClassLoader());
5353
// Timed load config for agent delay start and dynamic retransform
5454
long delayMinutes = ConfigService.INSTANCE.loadAgentConfig(agentArgs);
55-
ConfigService.INSTANCE.reportStatus();
5655
if (delayMinutes > 0) {
5756
TimerService.schedule(this::install, delayMinutes, TimeUnit.MINUTES);
5857
timedReportStatus();
5958
}
6059
if (!ConfigManager.INSTANCE.valid()) {
60+
ConfigService.INSTANCE.reportStatus();
6161
if (!ConfigManager.FIRST_TRANSFORM.get()) {
6262
LOGGER.warn("[AREX] Agent would not install due to {}.", ConfigManager.INSTANCE.getInvalidReason());
6363
}
6464
return;
6565
}
6666
initDependentComponents();
6767
transform();
68+
ConfigService.INSTANCE.reportStatus();
6869
} finally {
6970
Thread.currentThread().setContextClassLoader(savedContextClassLoader);
7071
}

0 commit comments

Comments
 (0)