EndpointMetric

sttp.tapir.server.metrics.EndpointMetric
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
Show all

Members list

Value members

Concrete methods

def onEndpointRequest(f: AnyEndpoint => F[Unit]): EndpointMetric[F]
def onException(f: (AnyEndpoint, Throwable) => F[Unit]): EndpointMetric[F]
def onResponseBody(f: (AnyEndpoint, ServerResponse[_]) => F[Unit]): EndpointMetric[F]
def onResponseHeaders(f: (AnyEndpoint, ServerResponse[_]) => F[Unit]): EndpointMetric[F]

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product