netty 4.1: consolidate netty config names

This commit is contained in:
Nikolay Martynov 2019-01-23 22:19:22 -05:00
parent cb1313ea9a
commit 7b0e3ffd1c
2 changed files with 7 additions and 2 deletions

View File

@ -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

View File

@ -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