sample_rate (nsqd 0.2.25+) sample messages delivered over this 
        connection.

        Valid range: 0 <= sample_rate <= 99 (0 disables sampling)

        Defaults to 0

def sample_rate(self, sample_rate):
        """sample_rate (nsqd 0.2.25+) sample messages delivered over this 
        connection.

        Valid range: 0 <= sample_rate <= 99 (0 disables sampling)

        Defaults to 0
        """

        assert issubclass(sample_rate.__class__, int)

        return self.__push('sample_rate', sample_rate)