Package-level declarations
Types
Link copied to clipboard
interface BasicEndpointMetrics
Link copied to clipboard
An empty implementation of EndpointMetrics that returns zeros for all metrics.
Link copied to clipboard
Endpoint metrics interface
Link copied to clipboard
class EndpointMetricsTracker
Tracks BasicEndpointMetrics over time, providing both cumulative and instant (diff since last read) metrics.
Link copied to clipboard
Represents a pair of instant and cumulative metrics.
Link copied to clipboard
A specific WithMetrics for EndpointMetrics.
Link copied to clipboard
Minimal metrics interface
Functions
Link copied to clipboard
Creates an EndpointMetricsTracker for this WithEndpointMetrics.
Link copied to clipboard
fun WithEndpointMetrics<*>.metricsFlow(interval: Duration = 1000.milliseconds): Flow<TrackedMetrics>
Returns a Flow that emits the BasicEndpointMetrics difference since the last emission. Every collector gets its own isolated EndpointMetricsTracker to prevent state collisions.