WithEndpointMetrics

Properties

Link copied to clipboard
abstract val metrics: EndpointMetrics<T>

Metrics of the element.

Functions

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.