ExemplarTimerSyntax

prometheus4cats.Timer$.ExemplarTimerSyntax
implicit class ExemplarTimerSyntax[F[_]](timer: Aux[F, Unit, [F[_], A, B] =>> Histogram[F, A, B]]) extends TimerSyntax[F]

Attributes

Source
Timer.scala
Graph
Supertypes
class TimerSyntax[F]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

def recordTimeWithExemplar(duration: FiniteDuration)(implicit F: FlatMap[F], exemplar: Exemplar[F]): F[Unit]

Attributes

Source
Timer.scala
def recordTimeWithExemplar(duration: FiniteDuration, exemplar: Option[Labels]): F[Unit]

Attributes

Source
Timer.scala
final def time[B](fb: F[B])(recordExemplar: (FiniteDuration, B) => Boolean)(implicit F: MonadThrow[F], clock: Clock[F], exemplar: Exemplar[F]): F[B]

Time an operation using an instance of cats.effect.kernel.Clock.

Time an operation using an instance of cats.effect.kernel.Clock.

The resulting metrics depend on the underlying implementation. See Timer.fromHistogram and Timer.fromGauge for more details.

Value parameters

fb

operation to be timed

Attributes

Source
Timer.scala
final def timeWithExemplar[B](fb: F[B])(recordExemplar: (FiniteDuration, B) => Option[Labels])(implicit F: MonadThrow[F], clock: Clock[F]): F[B]

Attributes

Source
Timer.scala

Inherited methods

final def recordTime(duration: FiniteDuration): F[Unit]

Attributes

Inherited from:
TimerSyntax
Source
Timer.scala
final def time[B](fb: F[B])(implicit F: MonadThrow[F], clock: Clock[F]): F[B]

Time an operation using an instance of cats.effect.kernel.Clock.

Time an operation using an instance of cats.effect.kernel.Clock.

The resulting metrics depend on the underlying implementation. See Timer.fromHistogram and Timer.fromGauge for more details.

Value parameters

fb

operation to be timed

Attributes

Inherited from:
TimerSyntax
Source
Timer.scala