RouteMetrics

class RouteMetrics[F[_]](meterRegistry: MeterRegistry)(using evidence$1: Sync[F])

Provides the usual metrics for a single HTTP route.

class Object
trait Matchable
class Any

Value members

Concrete methods

def wrap(name: String)(route: => F[Response[F]]): F[Response[F]]

Wraps a single route with the usual metrics (count, times, HTTP status codes).

Wraps a single route with the usual metrics (count, times, HTTP status codes).

Value parameters:
name

will be used in metric name