64 struct Settings
final {
65 static constexpr uint8_t kDistributionPercent = 25;
68 std::chrono::milliseconds period,
72 : Settings(period, kDistributionPercent, flags, span_level) {}
75 std::chrono::milliseconds period,
76 std::chrono::milliseconds distribution,
81 UASSERT(distribution <= period);
85 std::chrono::milliseconds period,
86 uint8_t distribution_percent,
90 : Settings(period, period * distribution_percent / 100, flags, span_level) {
91 UASSERT(distribution_percent <= 100);
94 template <
class Rep,
class Period>
95 constexpr Settings(std::chrono::duration<Rep, Period> period)
96 : Settings(period, kDistributionPercent, {},
logging::
Level::kInfo) {}
98 bool operator==(
const Settings& other)
const noexcept;
99 bool operator!=(
const Settings& other)
const noexcept;