Skip to content

Commit

Permalink
Remove gradle exclusion (#147)
Browse files Browse the repository at this point in the history
* Remove gradle exclusion

Signed-off-by: Pavol Loffay <[email protected]>

* Fix

Signed-off-by: Pavol Loffay <[email protected]>
  • Loading branch information
pavolloffay authored Dec 1, 2020
1 parent cea22d8 commit 0a55d41
Showing 1 changed file with 1 addition and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,7 @@
import static io.opentelemetry.javaagent.tooling.matcher.NameMatchers.namedOneOf;
import static net.bytebuddy.matcher.ElementMatchers.is;
import static net.bytebuddy.matcher.ElementMatchers.isPublic;
import static net.bytebuddy.matcher.ElementMatchers.nameStartsWith;
import static net.bytebuddy.matcher.ElementMatchers.named;
import static net.bytebuddy.matcher.ElementMatchers.not;
import static net.bytebuddy.matcher.ElementMatchers.takesArgument;
import static net.bytebuddy.matcher.ElementMatchers.takesArguments;

Expand Down Expand Up @@ -66,10 +64,7 @@ static class OutputStreamInstrumentation implements TypeInstrumentation {

@Override
public ElementMatcher<? super TypeDescription> typeMatcher() {
// TODO exclude gradle classes in AgentBuilder SPI in AbstractTest
// The gradle classes are excluded only for test purposes
return extendsClass(named("java.io.OutputStream"))
.and(not(nameStartsWith("org.gradle.internal")));
return extendsClass(named("java.io.OutputStream"));
}

@Override
Expand Down

0 comments on commit 0a55d41

Please sign in to comment.