Replies: 3 comments 4 replies
-
|
If the current plugin doesn't work, you need to adjust method match, bydebuddy should have to way of matching method annotations from parent interface. |
Beta Was this translation helpful? Give feedback.
4 replies
-
|
Okay,I can write test cases to verify it.
…---Original---
From: "吴晟 Wu ***@***.***>
Date: Wed, Feb 4, 2026 18:34 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [apache/skywalking] How does the agent SpringMVC plugin interceptannotations on interfaces? (Discussion #13691)
I think you could simply change plugin method matcher to follow this.
Something like
ElementMatcher.Junction<MethodDescription> hasAnnotationDirectlyOrOnInterface = ElementMatchers.isAnnotatedWith(xxx.class) .or(ElementMatchers.isOverriddenFrom( ElementMatchers.isAnnotatedWith(xxx.class) ));
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
-
|
thank you
…---Original---
From: "吴晟 Wu ***@***.***>
Date: Wed, Feb 4, 2026 18:51 PM
To: ***@***.***>;
Cc: ***@***.******@***.***>;
Subject: Re: [apache/skywalking] How does the agent SpringMVC plugin interceptannotations on interfaces? (Discussion #13691)
Will future versions of the MVC plugin support this kind of syntax?
plugin work relies on community, I don't know that. I have shared the proposed way, should be easy to change. But we need to test it anyway.
No plan from my personal perspective.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
@RestController
public interface UserClient {
@RequestMapping("/save")
JSONObject save();
}
Beta Was this translation helpful? Give feedback.
All reactions