A `Sampler` was already introduced in #875 but it needs to be improved and actually use the new `traces_sample_rate` configuration option.