Default implementation of RefreshScheduler that simply uses an akka.actor.Scheduler to schedule tasks to be run in the provided ExecutionContext.
Helper for cases in which a gauge shouldn't store the current value of a observed value but the difference between the current observed value and the previously observed value.
This implementation is meant to be used for real time data collection where data snapshots are taken often over time.
This implementation is meant to be used for real time data collection where data snapshots are taken often over time. The collect(..) operation extracts all the recorded values from the histogram and resets the counts, but still leave it in a consistent state even in the case of concurrent modification while the snapshot is being taken.
RefreshScheduler implementation that accumulates all the scheduled actions until it is pointed to another refresh scheduler.
RefreshScheduler implementation that accumulates all the scheduled actions until it is pointed to another refresh
scheduler. Once it is pointed, all subsequent calls to schedule
will immediately be scheduled in the pointed
scheduler.
UnitOfMeasurement representing computer memory space.
UnitOfMeasurement representing time.
A UnitOfMeasurement implementation describes the magnitude of a quantity being measured, such as Time and computer Memory space.
A UnitOfMeasurement implementation describes the magnitude of a quantity being measured, such as Time and computer Memory space. Kamon uses UnitOfMeasurement implementations just as a informative companion to metrics inside entity recorders and might be used to scale certain kinds of measurements in metric backends.
Helper for cases in which a gauge shouldn't store the current value of a observed value but the difference between the current observed value and the previously observed value. Should only be used if the observed value is always increasing or staying steady, but is never able to decrease.
Note: The first time a value is collected, this wrapper will always return zero, afterwards, the difference between the current value and the last value will be returned.