TimerImpl

abstract class TimerImpl[F[_]](clock: Clock[F])(`evidence$1`: Sync[F]) extends Timer[F]
trait Timer[F]
class Object
trait Matchable
class Any

Value members

Concrete methods

override def time[A](value: F[A], tags: Tag*): F[A]
Definition Classes
Timer

Inherited methods

def record[T](value: T, tags: Tag*)(`evidence$1`: ElapsedTime[T]): F[Unit]

Record a value that implements com.avast.datadog4s.api.metric.ElapsedTime type class. By default we provide instance for java.time.Duration and scala.concurrent.duration.FiniteDuration.

Record a value that implements com.avast.datadog4s.api.metric.ElapsedTime type class. By default we provide instance for java.time.Duration and scala.concurrent.duration.FiniteDuration.

Value Params
tags

Tags that should be applied for this recording

value

Representation of duration that should be recorded

Inherited from
Timer
def recordTime(elapsed: Long, timeUnit: TimeUnit, tags: Tag*): F[Unit]

Record raw measurement represented as long

Record raw measurement represented as long

Value Params
elapsed

Measured duration

tags

Tags that should be applied for this recording

timeUnit

TimeUnit in which duration is measured

Inherited from
Timer