Fix redisson latest dep test
MODIFY
instrumentation/redisson-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/redisson/RedissonDbAttributesExtractor.java
instrumentation/redisson-3.0/javaagent/src/main/java/io/opentelemetry/javaagent/instrumentation/redisson/RedissonDbAttributesExtractor.java
@@ -65,6 +65,11 @@ final class RedissonDbAttributesExtractor extends DbAttributesExtractor<Redisson
Object command = request.getCommand();
if (command instanceof CommandData) {
return ((CommandData<?, ?>) command).getCommand().getName();
+ } else if (command instanceof CommandsData) {
+ CommandsData commandsData = (CommandsData) command;
+ if (commandsData.getCommands().size() == 1) {
+ return commandsData.getCommands().get(0).getCommand().getName();
+ }
}
return null;
}

Fix redisson latest dep test (#3110)