61 struct Settings
final {
62 static constexpr uint8_t kDistributionPercent = 25;
65 std::chrono::milliseconds period,
69 : Settings(period, kDistributionPercent, flags, span_level) {}
72 std::chrono::milliseconds period,
73 std::chrono::milliseconds distribution,
78 UASSERT(distribution <= period);
82 std::chrono::milliseconds period,
83 uint8_t distribution_percent,
87 : Settings(period, period * distribution_percent / 100, flags, span_level) {
88 UASSERT(distribution_percent <= 100);
91 template <
class Rep,
class Period>
92 constexpr Settings(std::chrono::duration<Rep, Period> period)
93 : Settings(period, kDistributionPercent, {},
logging::
Level::kInfo) {}
95 bool operator==(
const Settings& other)
const noexcept;
96 bool operator!=(
const Settings& other)
const noexcept;