TracingRedisClusterConnection extends TracingRedisConnection implements RedisClusterConnection { @Override public void clusterDeleteSlots(RedisClusterNode node, int... slots) { helper.doInScope(CLUSTER_DELSLOTS, () -> connection.clusterDeleteSlots(node, slots)); } TracingRedisClusterConnection(RedisClusterConnection connection,
      TracingConfiguration tracingConfiguration); @Override Iterable<RedisClusterNode> clusterGetNodes(); @Override Collection<RedisClusterNode> clusterGetSlaves(RedisClusterNode master); @Override Map<RedisClusterNode, Collection<RedisClusterNode>> clusterGetMasterSlaveMap(); @Override Integer clusterGetSlotForKey(byte[] key); @Override RedisClusterNode clusterGetNodeForSlot(int slot); @Override RedisClusterNode clusterGetNodeForKey(byte[] key); @Override ClusterInfo clusterGetClusterInfo(); @Override void clusterAddSlots(RedisClusterNode node, int... slots); @Override void clusterAddSlots(RedisClusterNode node, SlotRange range); @Override Long clusterCountKeysInSlot(int slot); @Override void clusterDeleteSlots(RedisClusterNode node, int... slots); @Override void clusterDeleteSlotsInRange(RedisClusterNode node, SlotRange range); @Override void clusterForget(RedisClusterNode node); @Override void clusterMeet(RedisClusterNode node); @Override void clusterSetSlot(RedisClusterNode node, int slot, AddSlots mode); @Override List<byte[]> clusterGetKeysInSlot(int slot, Integer count); @Override void clusterReplicate(RedisClusterNode master, RedisClusterNode slave); @Override String ping(RedisClusterNode node); @Override void bgReWriteAof(RedisClusterNode node); @Override void bgSave(RedisClusterNode node); @Override Long lastSave(RedisClusterNode node); @Override void save(RedisClusterNode node); @Override Long dbSize(RedisClusterNode node); @Override void flushDb(RedisClusterNode node); @Override void flushAll(RedisClusterNode node); @Override Properties info(RedisClusterNode node); @Override Properties info(RedisClusterNode node, String section); @Override Set<byte[]> keys(RedisClusterNode node, byte[] pattern); @Override byte[] randomKey(RedisClusterNode node); @Override void shutdown(RedisClusterNode node); @Override List<String> getConfig(RedisClusterNode redisClusterNode, String s); @Override void setConfig(RedisClusterNode node, String param, String value); @Override void resetConfigStats(RedisClusterNode node); @Override Long time(RedisClusterNode node); @Override List<RedisClientInfo> getClientList(RedisClusterNode node);  }
@Test public void invokingClusterDeleteSlots() { commandCreatesNewSpan(RedisCommand.CLUSTER_DELSLOTS, () -> getConnection().clusterDeleteSlots(mockRedisClusterNode, 0)); verify(mockRedisConnection()).clusterDeleteSlots(mockRedisClusterNode, 0); }