Add version specific names to allow disabling only a specific version (DataDog/dd-trace-java#1456)
MODIFY
instrumentation/lettuce/lettuce-4.0/src/main/java/io/opentelemetry/auto/instrumentation/lettuce/v4_0/LettuceAsyncCommandsInstrumentation.java
instrumentation/lettuce/lettuce-4.0/src/main/java/io/opentelemetry/auto/instrumentation/lettuce/v4_0/LettuceAsyncCommandsInstrumentation.java
@@ -31,7 +31,7 @@ import net.bytebuddy.matcher.ElementMatcher;
public class LettuceAsyncCommandsInstrumentation extends Instrumenter.Default {
public LettuceAsyncCommandsInstrumentation() {
- super("lettuce", "lettuce-4-async");
+ super("lettuce", "lettuce-4", "lettuce-4-async");
}
@Override

MODIFY
instrumentation/lettuce/lettuce-4.0/src/main/java/io/opentelemetry/auto/instrumentation/lettuce/v4_0/LettuceClientInstrumentation.java
instrumentation/lettuce/lettuce-4.0/src/main/java/io/opentelemetry/auto/instrumentation/lettuce/v4_0/LettuceClientInstrumentation.java
@@ -30,7 +30,7 @@ import net.bytebuddy.matcher.ElementMatcher;
public final class LettuceClientInstrumentation extends Instrumenter.Default {
public LettuceClientInstrumentation() {
- super("lettuce");
+ super("lettuce", "lettuce-4");
}
@Override

MODIFY
instrumentation/lettuce/lettuce-5.0/src/main/java/io/opentelemetry/auto/instrumentation/lettuce/v5_0/LettuceAsyncCommandsInstrumentation.java
instrumentation/lettuce/lettuce-5.0/src/main/java/io/opentelemetry/auto/instrumentation/lettuce/v5_0/LettuceAsyncCommandsInstrumentation.java
@@ -31,7 +31,7 @@ import net.bytebuddy.matcher.ElementMatcher;
public class LettuceAsyncCommandsInstrumentation extends Instrumenter.Default {
public LettuceAsyncCommandsInstrumentation() {
- super("lettuce", "lettuce-5-async");
+ super("lettuce", "lettuce-5", "lettuce-5-async");
}
@Override

MODIFY
instrumentation/lettuce/lettuce-5.0/src/main/java/io/opentelemetry/auto/instrumentation/lettuce/v5_0/LettuceClientInstrumentation.java
instrumentation/lettuce/lettuce-5.0/src/main/java/io/opentelemetry/auto/instrumentation/lettuce/v5_0/LettuceClientInstrumentation.java
@@ -35,7 +35,7 @@ import net.bytebuddy.matcher.ElementMatcher;
public final class LettuceClientInstrumentation extends Instrumenter.Default {
public LettuceClientInstrumentation() {
- super("lettuce");
+ super("lettuce", "lettuce-5");
}
@Override

MODIFY
instrumentation/lettuce/lettuce-5.0/src/main/java/io/opentelemetry/auto/instrumentation/lettuce/v5_0/LettuceReactiveCommandsInstrumentation.java
instrumentation/lettuce/lettuce-5.0/src/main/java/io/opentelemetry/auto/instrumentation/lettuce/v5_0/LettuceReactiveCommandsInstrumentation.java
@@ -35,7 +35,7 @@ import net.bytebuddy.matcher.ElementMatcher;
public class LettuceReactiveCommandsInstrumentation extends Instrumenter.Default {
public LettuceReactiveCommandsInstrumentation() {
- super("lettuce", "lettuce-5-rx");
+ super("lettuce", "lettuce-5", "lettuce-5-rx");
}
@Override

Add version specific names to allow disabling only a specific version (DataDog/dd-trace-java#1456)