StatsdDataInterface includes getters but not setters. For most of them is is not really problematic as the factory offers a way to set the field on instantiation, but that is not the case for sample rate. So the only way to set sampling rate per stats record is something like
StatsdDataInterface
includes getters but not setters. For most of them is is not really problematic as the factory offers a way to set the field on instantiation, but that is not the case for sample rate. So the only way to set sampling rate per stats record is something likewhich will be flagged by static analyzers as the interface documented as the return type of
increment
does not have that method.