Skip to content

Commit ce6f77a

Browse files
committed
fix
1 parent 35cf2c1 commit ce6f77a

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

instrumentation/vertx/vertx-http-client/vertx-http-client-4.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/vertx/v4_0/client/VertxClientInstrumentationModule.java

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,10 @@ public VertxClientInstrumentationModule() {
2424

2525
@Override
2626
public ElementMatcher.Junction<ClassLoader> classLoaderMatcher() {
27-
return not(
28-
hasClassesNamed(
29-
// class removed in 4.0
30-
"io.vertx.core.Starter",
31-
// class added in 5.0
32-
"io.vertx.core.http.impl.HttpClientConnectionInternal"));
27+
// class removed in 4.0
28+
return not(hasClassesNamed("io.vertx.core.Starter"))
29+
// class added in 5.0
30+
.and(not(hasClassesNamed("io.vertx.core.http.impl.HttpClientConnectionInternal")));
3331
}
3432

3533
@Override

0 commit comments

Comments
 (0)