Represents the state of a request/response cycle, tracking various metrics and properties
including connection details, caching information, and upstream server interactions.
An Inflight type tracks the frequency of actions that are actively occurring. When the value
is dropped from scope, the count will automatically decrease.
A stable rate estimator that reports the rate of events in the past interval time.
It returns the average rate between interval * 2 and interval while collecting the events
happening between interval and now.
Input struct to custom functions for calculating rate. Includes the counts
from the current interval, previous interval, the configured duration of an
interval, and the fraction into the current interval that the sample was
taken.
Creates a new SimpleServiceTask with the specified name, interval, and collection of tasks.
This service manages multiple background tasks that run concurrently at fixed intervals.