Fix `disable.oal` does not work. (#13290)

This commit is contained in:
Wan Kai 2025-06-03 20:55:30 +08:00 committed by GitHub
parent 485b7ff7c8
commit 1dc39f6f26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 4 additions and 3 deletions

View File

@ -28,6 +28,7 @@
* Refactor: simplify the `Accept` http header process.
* [Break Change]Storage: Move `event` from metrics to recods.
* Remove string limitation in Jackson deserializer for ElasticSearch client.
* Fix `disable.oal` does not work.
#### UI

View File

@ -405,6 +405,9 @@ public class CoreModuleProvider extends ModuleProvider {
moduleConfig.getMaxHttpUrisNumberPerService()
);
// Disable OAL script has higher priority
oalEngineLoaderService.load(DisableOALDefine.INSTANCE);
try {
receiver.scan();
annotationScan.scan();
@ -412,9 +415,6 @@ public class CoreModuleProvider extends ModuleProvider {
throw new ModuleStartException(e.getMessage(), e);
}
// Disable OAL script has higher priority
oalEngineLoaderService.load(DisableOALDefine.INSTANCE);
Address gRPCServerInstanceAddress = new Address(moduleConfig.getGRPCHost(), moduleConfig.getGRPCPort(), true);
TelemetryRelatedContext.INSTANCE.setId(gRPCServerInstanceAddress.toString());
ClusterCoordinator coordinator = this.getManager()