HistogramTimer

com.avast.datadog4s.statsd.metric.timer.HistogramTimer
class HistogramTimer[F[_]](clock: Clock[F], statsDClient: StatsDClient, aspect: String, sampleRate: Double, defaultTags: Seq[Tag], timeUnit: TimeUnit)(using evidence$1: Sync[F]) extends TimerImpl[F]

Attributes

Graph
Supertypes
class TimerImpl[F]
trait Timer[F]
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def record[T](t: T, tags: Tag*)(using evidence$2: 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

Definition Classes

Inherited 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

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

Attributes

Definition Classes
Inherited from:
TimerImpl