Opentelemetry.Interval_limiterUtility to limit the frequency of some event
Interval limiter. This is a form of rate limiting where an event cannot be followed by another event until a given interval of time has passed.
val create : min_interval:Mtime.span -> unit -> tval min_interval : t -> Mtime.spanval make_attempt : t -> boolmake_attempt lim returns true if the last successful attempt was more than min_interval ago, as measured by mtime. If so, this counts as the new latest attempt; otherwise false is returned and the state is not updated.