Skip to content

Decompose dicjunction matchers#17227

Open
laurit wants to merge 1 commit intoopen-telemetry:mainfrom
laurit:disjunction-opt
Open

Decompose dicjunction matchers#17227
laurit wants to merge 1 commit intoopen-telemetry:mainfrom
laurit:disjunction-opt

Conversation

@laurit
Copy link
Copy Markdown
Contributor

@laurit laurit commented Mar 30, 2026

Needed for

return named("org.springframework.remoting.rmi.RmiClientInterceptor")
.or(extendsClass(named("org.springframework.ejb.access.AbstractSlsbInvokerInterceptor")));

We attempt to decompose the matchers to figure out which classes they are trying to match. For each matcher we try to get the class names it matches and the name of the supertype it matches. We use this information to avoid running the matchers when we know that they can't possibly match. For example when transforming the class named Foo we check whether there is a matcher that matches Foo or whether there is a subtype matcher that matches Foo or any of its super types. If there is a match we run all matchers for Foo otherwise we run only the matchers we were not able to decompose.

@laurit laurit requested a review from a team as a code owner March 30, 2026 12:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant