MetricsOps

org.http4s.metrics.MetricsOps
See theMetricsOps companion object
trait MetricsOps[F[_]]

Describes an algebra capable of writing metrics to a metrics registry

Attributes

Companion:
object
Source:
MetricsOps.scala
Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Concise view

Value members

Abstract methods

Decreases the count of active requests

Decreases the count of active requests

Attributes

classifier

the classifier to apply

Source:
MetricsOps.scala

Increases the count of active requests

Increases the count of active requests

Attributes

classifier

the classifier to apply

Source:
MetricsOps.scala

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

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

Attributes

classifier

the classifier to apply

elapsed

the time to record

terminationType

the type of termination

Source:
MetricsOps.scala

Records the time to receive the response headers

Records the time to receive the response headers

Attributes

classifier

the classifier to apply

elapsed

the time to record

method

the http method of the request

Source:
MetricsOps.scala

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

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

Attributes

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

Source:
MetricsOps.scala

Concrete methods

def mapK[G[_]](fk: FunctionK[F, G]): MetricsOps[G]

Transform the effect of MetricOps using the supplied natural transformation

Transform the effect of MetricOps using the supplied natural transformation

Attributes

G

the effect to transform to

fk

natural transformation

Returns:

a new metric ops in the transformed effect

Source:
MetricsOps.scala