diff --git a/instrumentation/jedis/jedis-1.4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jedis/v1_4/JedisInstrumentationModule.java b/instrumentation/jedis/jedis-1.4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jedis/v1_4/JedisInstrumentationModule.java index ebbf2fbcfe79..3e05e81255f0 100644 --- a/instrumentation/jedis/jedis-1.4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jedis/v1_4/JedisInstrumentationModule.java +++ b/instrumentation/jedis/jedis-1.4/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jedis/v1_4/JedisInstrumentationModule.java @@ -32,4 +32,14 @@ public ElementMatcher.Junction classLoaderMatcher() { public List typeInstrumentations() { return asList(new JedisConnectionInstrumentation(), new JedisInstrumentation()); } + + @Override + public boolean isIndyModule() { + // java.lang.NoClassDefFoundError: + // io/opentelemetry/javaagent/instrumentation/jedis/JedisRequestContext + // at redis.clients.jedis.Jedis.flushAll(Jedis.java:367) + // at io.opentelemetry.javaagent.instrumentation.jedis.v1_4 + // .JedisClientTest.setup(JedisClientTest.java:49) + return false; + } } diff --git a/instrumentation/jedis/jedis-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jedis/v3_0/JedisInstrumentationModule.java b/instrumentation/jedis/jedis-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jedis/v3_0/JedisInstrumentationModule.java index 22ddf9453448..1e87a3c0ccda 100644 --- a/instrumentation/jedis/jedis-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jedis/v3_0/JedisInstrumentationModule.java +++ b/instrumentation/jedis/jedis-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jedis/v3_0/JedisInstrumentationModule.java @@ -34,4 +34,14 @@ public ElementMatcher.Junction classLoaderMatcher() { public List typeInstrumentations() { return asList(new JedisConnectionInstrumentation(), new JedisInstrumentation()); } + + @Override + public boolean isIndyModule() { + // java.lang.NoClassDefFoundError: + // io/opentelemetry/javaagent/instrumentation/jedis/JedisRequestContext + // at redis.clients.jedis.BinaryJedis.flushAll(BinaryJedis.java:595) + // at io.opentelemetry.javaagent.instrumentation.jedis.v3_0 + // .Jedis30ClientTest.setup(Jedis30ClientTest.java:50) + return false; + } } diff --git a/instrumentation/jedis/jedis-4.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jedis/v4_0/JedisInstrumentationModule.java b/instrumentation/jedis/jedis-4.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jedis/v4_0/JedisInstrumentationModule.java index d875cb0c1755..770c015ff2b2 100644 --- a/instrumentation/jedis/jedis-4.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jedis/v4_0/JedisInstrumentationModule.java +++ b/instrumentation/jedis/jedis-4.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/jedis/v4_0/JedisInstrumentationModule.java @@ -30,4 +30,14 @@ public ElementMatcher.Junction classLoaderMatcher() { public List typeInstrumentations() { return asList(new JedisConnectionInstrumentation(), new JedisInstrumentation()); } + + @Override + public boolean isIndyModule() { + // java.lang.NoClassDefFoundError: + // io/opentelemetry/javaagent/instrumentation/jedis/JedisRequestContext + // at redis.clients.jedis.Jedis.set(Jedis.java:4613) + // at io.opentelemetry.javaagent.instrumentation.jedis + // .v4_0.Jedis40ClientTest.getCommand(Jedis40ClientTest.java:78) + return false; + } }