TimerImpl

com.avast.datadog4s.statsd.metric.TimerImpl
abstract class TimerImpl[F[_]](clock: Clock[F])(using evidence$1: Sync[F]) extends Timer[F]

Attributes

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

Members list

Concise view

Value members

Concrete methods

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

Attributes

Definition Classes

Inherited 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.

Attributes

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

Attributes

elapsed

Measured duration

tags

Tags that should be applied for this recording

timeUnit

TimeUnit in which duration is measured

Inherited from:
Timer