netty 4.1: consolidate netty config names
MODIFY
dd-java-agent/instrumentation/netty-4.1/src/main/java/datadog/trace/instrumentation/netty41/ChannelFutureListenerInstrumentation.java
dd-java-agent/instrumentation/netty-4.1/src/main/java/datadog/trace/instrumentation/netty41/ChannelFutureListenerInstrumentation.java
@@ -27,7 +27,9 @@ import net.bytebuddy.matcher.ElementMatcher;
public class ChannelFutureListenerInstrumentation extends Instrumenter.Default {
public ChannelFutureListenerInstrumentation() {
- super("netty", "netty-4.1");
+ super(
+ NettyChannelPipelineInstrumentation.INSTRUMENTATION_NAME,
+ NettyChannelPipelineInstrumentation.ADDITIONAL_INSTRUMENTATION_NAMES);
}
@Override

MODIFY
dd-java-agent/instrumentation/netty-4.1/src/main/java/datadog/trace/instrumentation/netty41/NettyChannelPipelineInstrumentation.java
dd-java-agent/instrumentation/netty-4.1/src/main/java/datadog/trace/instrumentation/netty41/NettyChannelPipelineInstrumentation.java
@@ -40,8 +40,11 @@ import net.bytebuddy.matcher.ElementMatcher;
@AutoService(Instrumenter.class)
public class NettyChannelPipelineInstrumentation extends Instrumenter.Default {
+ static final String INSTRUMENTATION_NAME = "netty";
+ static final String[] ADDITIONAL_INSTRUMENTATION_NAMES = {"netty-4.1"};
+
public NettyChannelPipelineInstrumentation() {
- super("netty", "netty-4.1");
+ super(INSTRUMENTATION_NAME, ADDITIONAL_INSTRUMENTATION_NAMES);
}
@Override

netty 4.1: consolidate netty config names