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
Members list
Value members
Concrete methods
def recordTimeWithExemplar(duration: FiniteDuration)(implicit F: FlatMap[F], exemplar: Exemplar[F]): F[Unit]
Attributes
- Source
- Timer.scala
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
Attributes
- Inherited from:
- TimerSyntax
- Source
- Timer.scala
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
In this article