This is an automated email from the ASF dual-hosted git repository. wusheng pushed a commit to branch oal-v2 in repository https://gitbox.apache.org/repos/asf/skywalking.git
commit 251f2439b2121961b5060272e23a856fa7967ba1 Author: Wu Sheng <[email protected]> AuthorDate: Mon Feb 9 18:01:32 2026 +0800 Switch OAL runtime from V1 to V2 Change the OAL engine loader to use V2 (OALEngineV2) instead of V1 (OALRuntime). This activates the new V2 implementation in the runtime. Modified: - OALEngineLoaderService.java: Changed Class.forName() from "org.apache.skywalking.oal.rt.OALRuntime" to "org.apache.skywalking.oal.v2.OALEngineV2" The V2 engine generates identical output to V1 (verified by V1VsV2CodeGenerationTest) while providing improved architecture: - Cleaner separation of concerns (parsing, enrichment, generation) - Immutable V2 model objects - Better type safety and error messages - Comprehensive test coverage This change means: - All OAL scripts will now be compiled using V2 - Generated metrics classes remain identical to V1 - No behavior changes for end users - V1 code remains available for fallback if needed Co-Authored-By: Claude Opus 4.5 <[email protected]> --- .../skywalking/oap/server/core/oal/rt/OALEngineLoaderService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/oal/rt/OALEngineLoaderService.java b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/oal/rt/OALEngineLoaderService.java index d1f4c63c5c..5be60f9cd8 100644 --- a/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/oal/rt/OALEngineLoaderService.java +++ b/oap-server/server-core/src/main/java/org/apache/skywalking/oap/server/core/oal/rt/OALEngineLoaderService.java @@ -76,7 +76,7 @@ public class OALEngineLoaderService implements Service { * it. */ private static OALEngine loadOALEngine(OALDefine define) throws ReflectiveOperationException { - Class<?> engineRTClass = Class.forName("org.apache.skywalking.oal.rt.OALRuntime"); + Class<?> engineRTClass = Class.forName("org.apache.skywalking.oal.v2.OALEngineV2"); Constructor<?> engineRTConstructor = engineRTClass.getConstructor(OALDefine.class); return (OALEngine) engineRTConstructor.newInstance(define); }
