Labelled

object Labelled
Companion:
class
Source:
Timer.scala
class Object
trait Matchable
class Any

Type members

Types

type Aux[F[_], A, M[_[_], _, _]] = Labelled[F, A] { type Metric = M[F, Double, A]; }

Value members

Concrete methods

def fromGauge[F[_] : Clock, A](gauge: Labelled[F, Double, A]): Aux[F, A, Labelled]

Create a Timer.Labelled from a Gauge.Labelled instance.

Create a Timer.Labelled from a Gauge.Labelled instance.

This delegates to the underlying Gauge.Labelled instance which will only ever show the last value for duration of the given operation.

Values are recorded in scala.Doubles by converting a scala.concurrent.duration.FiniteDuration to seconds.

The best way to construct a gauge based Timer.Labelled is to use the .asTimer on the histogram DSL provided by MetricFactory.

Returns:

a Timer.Labelled.Aux that is annotated with the type of underlying metrics, in this case Gauge.Labelled

Source:
Timer.scala
def fromHistogram[F[_] : Clock, A](histogram: Labelled[F, Double, A]): Aux[F, A, Labelled]

Create a Timer.Labelled from a Histogram.Labelled instance.

Create a Timer.Labelled from a Histogram.Labelled instance.

This delegates to the underlying Histogram.Labelled instance and assumes you have already set up sensible buckets for the distribution of values.

Values are recorded in scala.Doubles by converting a scala.concurrent.duration.FiniteDuration to seconds.

The best way to construct a histogram based Timer.Labelled is to use the .asTimer on the histogram DSL provided by MetricFactory.

Returns:

a Timer.Labelled.Aux that is annotated with the type of underlying metrics, in this case Histogram.Labelled

Source:
Timer.scala
def fromSummary[F[_] : Clock, A](summary: Labelled[F, Double, A]): Aux[F, A, Labelled]

Create a Timer.Labelled from a Summary.Labelled instance.

Create a Timer.Labelled from a Summary.Labelled instance.

This delegates to the underlying Summary.Labelled instance and assumes you have already set up sensible buckets for the distribution of values.

Values are recorded in scala.Doubles by converting a scala.concurrent.duration.FiniteDuration to seconds.

The best way to construct a histogram based Timer.Labelled is to use the .asTimer on the summary DSL provided by MetricFactory.

Returns:

a Timer.Labelled.Aux that is annotated with the type of underlying metrics, in this case Summary.Labelled

Source:
Timer.scala

Implicits

Implicits

implicit def labelsContravariant[F[_]]: LabelsContravariant[[_] =>> Labelled[F, _$19]]