sttp.tapir.server.metrics

Members list

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]])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class Metric[F[_], M](metric: M, onRequest: (ServerRequest, M, MonadError[F]) => F[EndpointMetric[F]])

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
case class MetricLabels(forRequest: List[(String, (AnyEndpoint, ServerRequest) => String)], forResponse: List[(String, Either[Throwable, ServerResponse[_]] => String)], forResponsePhase: ResponsePhaseLabel)

Attributes

Companion
object
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
object MetricLabels

Attributes

Companion
class
Supertypes
trait Product
trait Mirror
class Object
trait Matchable
class Any
Self type
case class ResponsePhaseLabel(name: String, headersValue: String, bodyValue: String)

Attributes

Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all