Skip to content

Commit 9d933d2

Browse files
author
Andrew Kent
committed
Skip c3p0 proxy classes.
1 parent 95550ac commit 9d933d2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

dd-java-agent/src/main/java/com/datadoghq/agent/TracingAgent.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
import static net.bytebuddy.matcher.ElementMatchers.any;
2222
import static net.bytebuddy.matcher.ElementMatchers.isBootstrapClassLoader;
2323
import static net.bytebuddy.matcher.ElementMatchers.nameContains;
24+
import static net.bytebuddy.matcher.ElementMatchers.nameMatches;
2425
import static net.bytebuddy.matcher.ElementMatchers.nameStartsWith;
2526

2627
import dd.trace.Instrumenter;
@@ -77,6 +78,7 @@ public static void addByteBuddy(final Instrumentation inst) {
7778
.or(nameStartsWith("org.slf4j."))
7879
.or(nameContains("javassist"))
7980
.or(nameContains(".asm."))
81+
.or(nameMatches("com\\.mchange\\.v2\\.c3p0\\..*Proxy"))
8082
.ignore(
8183
any(),
8284
isBootstrapClassLoader()

0 commit comments

Comments
 (0)