Timer

com.avast.datadog4s.api.metric.Timer
trait Timer[F[_]]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class NoopTimer[F]

Members list

Value members

Abstract methods

def record[T](value: T, tags: Tag*)(using 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 parameters

tags

Tags that should be applied for this recording

value

Representation of duration that should be recorded

Attributes

def time[A](f: F[A], tags: Tag*): F[A]

Concrete methods

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

Record raw measurement represented as long

Record raw measurement represented as long

Value parameters

elapsed

Measured duration

tags

Tags that should be applied for this recording

timeUnit

TimeUnit in which duration is measured

Attributes