Skip to content

Fix: remove the dependency from VirtualServiceAnalysisListener if GenAIAnalyzerModule is disabled.#13838

Merged
wankai123 merged 4 commits intoapache:masterfrom
wankai123:fix-GenAIAnalyzerModule
Apr 21, 2026
Merged

Fix: remove the dependency from VirtualServiceAnalysisListener if GenAIAnalyzerModule is disabled.#13838
wankai123 merged 4 commits intoapache:masterfrom
wankai123:fix-GenAIAnalyzerModule

Conversation

@wankai123
Copy link
Copy Markdown
Member

  • If this pull request closes/resolves/fixes an existing issue, replace the issue number. Closes #.
  • Update the CHANGES log.

@wankai123 wankai123 added this to the 10.5.0 milestone Apr 21, 2026
@wankai123 wankai123 added the bug Something isn't working and you are sure it's a bug! label Apr 21, 2026
wu-sheng
wu-sheng previously approved these changes Apr 21, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR prevents VirtualServiceAnalysisListener from failing when GenAIAnalyzerModule is not enabled in the OAP module configuration by making the GenAI processor registration conditional.

Changes:

  • Guard IGenAIMeterAnalyzerService lookup with moduleManager.has(GenAIAnalyzerModule.NAME) and only register VirtualGenAIProcessor when available.
  • Update changes.md to document the fix.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
oap-server/analyzer/agent-analyzer/src/main/java/org/apache/skywalking/oap/server/analyzer/provider/trace/parser/listener/VirtualServiceAnalysisListener.java Makes GenAI processor/service optional so the listener works when GenAI module isn’t loaded.
docs/en/changes/changes.md Adds a changelog entry describing the behavior change.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread docs/en/changes/changes.md Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
peachisai
peachisai previously approved these changes Apr 21, 2026
wu-sheng
wu-sheng previously approved these changes Apr 21, 2026
@wankai123 wankai123 merged commit 8242ff6 into apache:master Apr 21, 2026
425 of 427 checks passed
@wankai123 wankai123 deleted the fix-GenAIAnalyzerModule branch April 21, 2026 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working and you are sure it's a bug!

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants