Allow consumers to specify the sample interval.