MetricsOps

trait MetricsOps[F[_]]

Describes an algebra capable of writing metrics to a metrics registry

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def decreaseActiveRequests(classifier: Option[String]): F[Unit]

Decreases the count of active requests

Decreases the count of active requests

Value parameters:
classifier

the classifier to apply

def increaseActiveRequests(classifier: Option[String]): F[Unit]

Increases the count of active requests

Increases the count of active requests

Value parameters:
classifier

the classifier to apply

def recordAbnormalTermination(elapsed: Long, terminationType: TerminationType, classifier: Option[String]): F[Unit]

Record abnormal terminations, like errors, timeouts or just other abnormal terminations.

Record abnormal terminations, like errors, timeouts or just other abnormal terminations.

Value parameters:
classifier

the classifier to apply

elapsed

the time to record

terminationType

the type of termination

def recordHeadersTime(method: Method, elapsed: Long, classifier: Option[String]): F[Unit]

Records the time to receive the response headers

Records the time to receive the response headers

Value parameters:
classifier

the classifier to apply

elapsed

the time to record

method

the http method of the request

def recordTotalTime(method: Method, status: Status, elapsed: Long, classifier: Option[String]): F[Unit]

Records the time to fully consume the response, including the body

Records the time to fully consume the response, including the body

Value parameters:
classifier

the classifier to apply

elapsed

the time to record

method

the http method of the request

status

the http status code of the response