WithEndpointMetrics
A specific WithMetrics for EndpointMetrics.
The members from BasicEndpointMetrics represent cumulative metrics.
Inheritors
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.