Skip to content

Commit

Permalink
lambda fix
Browse files Browse the repository at this point in the history
  • Loading branch information
laurit committed Oct 7, 2023
1 parent 4322f46 commit 194cbd3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void configure(IgnoredTypesBuilder builder) {
// More runnables to deal with
.allowClass("org.springframework.context.support.AbstractApplicationContext$")
.allowClass("org.springframework.context.support.ContextTypeMatchClassLoader")
.allowClass("org.springframework.context.support.DefaultLifecycleProcessor$$Lambda$")
.allowClass("org.springframework.context.support.DefaultLifecycleProcessor$$Lambda")
// Allow instrumenting ApplicationContext implementations - to inject beans
.allowClass("org.springframework.context.annotation.AnnotationConfigApplicationContext")
.allowClass("org.springframework.context.support.AbstractApplicationContext")
Expand All @@ -164,9 +164,9 @@ public void configure(IgnoredTypesBuilder builder) {

builder
.ignoreClass("org.springframework.http.")
.allowClass("org.springframework.http.client.reactive.AbstractClientHttpRequest$$Lambda$")
.allowClass("org.springframework.http.client.reactive.ReactorClientHttpConnector$$Lambda$")
.allowClass("org.springframework.http.codec.multipart.FileStorage$TempFileStorage$$Lambda$")
.allowClass("org.springframework.http.client.reactive.AbstractClientHttpRequest$$Lambda")
.allowClass("org.springframework.http.client.reactive.ReactorClientHttpConnector$$Lambda")
.allowClass("org.springframework.http.codec.multipart.FileStorage$TempFileStorage$$Lambda")
// There are some Mono implementation that get instrumented
.allowClass("org.springframework.http.server.reactive.");

Expand Down Expand Up @@ -240,7 +240,7 @@ public void configure(IgnoredTypesBuilder builder) {
.ignoreClass("com.google.common.")
.allowClass("com.google.common.util.concurrent.")
.allowClass("com.google.common.base.internal.Finalizer")
.allowClass("com.google.common.base.Java8Usage$$Lambda$");
.allowClass("com.google.common.base.Java8Usage$$Lambda");

builder
.ignoreClass("com.google.inject.")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public boolean matches(TypeDescription target) {
}

// bytecode proxies typically have $$ in their name
if (name.contains("$$") && !name.contains("$$Lambda$")) {
if (name.contains("$$") && !name.contains("$$Lambda$") && !name.endsWith("$$Lambda")) {
// allow scala anonymous classes
return !name.contains("$$anon$");
}
Expand Down

0 comments on commit 194cbd3

Please sign in to comment.