uuuyuqi opened a new pull request, #16231: URL: https://github.com/apache/dubbo/pull/16231
## What is the purpose of the change? Add DEBUG-level observability to `ExtensionLoader` for diagnosing SPI extension loading issues without external tools. **Motivation**: In environments with many internal SPI extensions across different versions, along with custom class-isolation frameworks, dependency conflicts or misconfiguration can cause extensions to be silently skipped or loaded with unexpected wrapper chains. Currently the only way to observe this is via Arthas or remote debugging, which has high operational cost. With these DEBUG logs, users can simply enable DEBUG level for `org.apache.dubbo.common.extension.ExtensionLoader` to get full visibility into the SPI loading process. **Changes**: - Log when extension class scanning starts and finishes (with timing, loaded names, adaptive class, wrappers) - Log each SPI class loaded (adaptive/wrapper/extension), including source resource URL - Log when an extension instance is created, including applied wrapper classes - Log when an extension class is skipped due to missing `@Activate(onClass=...)` dependencies, with the specific missing class names - Refactor `loadClassIfActive` to `findMissingOnClass` to return missing class names for diagnostic output All logs are guarded by `isDebugEnabled()`, no performance impact in production. Fixes #16230 ## Checklist - [x] Make sure there is a [GitHub_issue](https://github.com/apache/dubbo/issues) field for the change. - [x] Write a pull request description that is detailed enough to understand what the pull request does, how, and why. - [x] Write necessary unit-test to verify your logic correction. - [x] Make sure GitHub actions can pass. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
