TimerSyntax

prometheus4cats.Timer$.TimerSyntax
implicit class TimerSyntax[F[_]](timer: Timer[F, Unit])

Attributes

Source
Timer.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Concrete methods

Attributes

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

Source
Timer.scala