sttp.tapir.metrics
package sttp.tapir.metrics
Type members
Classlikes
case class EndpointMetric[F[_]](onEndpointRequest: Option[AnyEndpoint => F[Unit]], onResponse: Option[(AnyEndpoint, ServerResponseFromOutput[_]) => 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: Seq[(String, (AnyEndpoint, ServerRequest) => String)], forResponse: Seq[(String, Either[Throwable, ServerResponseFromOutput[_]] => String)])
- Companion:
- object