TimerFactory

com.avast.datadog4s.api.TimerFactory
trait TimerFactory[F[_]]

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Value members

Abstract methods

def distribution(aspect: String, sampleRate: Option[Double], timeUnit: TimeUnit): Timer[F]

Create distribution-based timer. Unlike TimerFactory.histogram, this implementation will aggregate and compute histograms on datadog servers which means that you will have statistically correct data.

Create distribution-based timer. Unlike TimerFactory.histogram, this implementation will aggregate and compute histograms on datadog servers which means that you will have statistically correct data.

For more information about distribution see Datadog documentation

Attributes

def histogram(aspect: String, sampleRate: Option[Double], timeUnit: TimeUnit): Timer[F]

Create histogram-backed timer. The implications are that this the histograms are computed in datadog agent and not on DDog servers. This means that the data in your dashboards etc might be less precise as they will be computed by aggregating histograms. For more info see Datadog documentation.

Create histogram-backed timer. The implications are that this the histograms are computed in datadog agent and not on DDog servers. This means that the data in your dashboards etc might be less precise as they will be computed by aggregating histograms. For more info see Datadog documentation.

In general, TimerFactory.distribution is probably preferred.

Attributes