mongoid instrument only support mongoid 2.x

Mongoid::Collection was removed in mongoid 3.x, so we should check version of mongoid before adding the instrument