sttp.tapir.server.metrics
package sttp.tapir.server.metrics
Type members
Classlikes
case class EndpointMetric[F[_]](onEndpointRequest: Option[AnyEndpoint => F[Unit]], onResponseHeaders: Option[(AnyEndpoint, ServerResponse[_]) => F[Unit]], onResponseBody: Option[(AnyEndpoint, ServerResponse[_]) => F[Unit]], onException: Option[(AnyEndpoint, Throwable) => F[Unit]])
case class Metric[F[_], M](metric: M, onRequest: (ServerRequest, M, MonadError[F]) => F[EndpointMetric[F]])
case class MetricLabels(forRequest: List[(String, (AnyEndpoint, ServerRequest) => String)], forResponse: List[(String, Either[Throwable, ServerResponse[_]] => String)], forResponsePhase: ResponsePhaseLabel)
- Companion:
- object