- Companion:
- class
- Source:
- Timer.scala
Type members
Value members
Concrete methods
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
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
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