Metrics

pillars.Metrics
See theMetrics companion class
object Metrics

Attributes

Companion
class
Source
Metrics.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Metrics.type

Members list

Value members

Concrete methods

def init[F[_] : Monad](meter: Meter[F]): F[Metrics[F]]

Using the default labels, registers the following metrics:

Using the default labels, registers the following metrics:

  • request_active{path, method} (up-down-counter)
  • request_total{path, method, status} (counter)
  • request_duration{path, method, status, phase} (histogram)

Status is by default the status code class (1xx, 2xx, etc.), and phase can be either headers or body - request duration is measured separately up to the point where the headers are determined, and then once again when the whole response body is complete.

Attributes

Source
Metrics.scala
def init[F[_] : Applicative](meter: Meter[F], metrics: List[Metric[F, _]]): F[Metrics[F]]

Attributes

Source
Metrics.scala
def noop[F[_] : Applicative]: Metrics[F]

Attributes

Source
Metrics.scala