62 struct Settings
final {
63 static constexpr uint8_t kDistributionPercent = 25;
66 std::chrono::milliseconds period,
70 : Settings(period, kDistributionPercent, flags, span_level)
74 std::chrono::milliseconds period,
75 std::chrono::milliseconds distribution,
84 UASSERT(distribution <= period);
88 std::chrono::milliseconds period,
89 uint8_t distribution_percent,
93 : Settings(period, period * distribution_percent / 100, flags, span_level)
95 UASSERT(distribution_percent <= 100);
98 template <
class Rep,
class Period>
99 constexpr Settings(std::chrono::duration<Rep, Period> period)
100 : Settings(period, kDistributionPercent, {}, logging
::Level::kInfo)
103 bool operator==(
const Settings& other)
const noexcept;
104 bool operator!=(
const Settings& other)
const noexcept;