sttp.tapir.server.metrics

Members list

Concise view

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

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

Attributes

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

Attributes

Companion:
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Attributes

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

Attributes

Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any