MetricAspect

Companion:
class
class Object
trait Matchable
class Any

Value members

Concrete methods

def adjustGauge(name: String, tags: Label*): MetricAspect[Double]

A metric aspect that adjusts a gauge each time the effect it is applied to succeeds.

A metric aspect that adjusts a gauge each time the effect it is applied to succeeds.

def adjustGaugeWith[A](name: String, tags: Label*)(f: A => Double): MetricAspect[A]

A metric aspect that adjusts a gauge each time the effect it is applied to succeeds, using the specified function to transform the value returned by the effect to the value to adjust the gauge with.

A metric aspect that adjusts a gauge each time the effect it is applied to succeeds, using the specified function to transform the value returned by the effect to the value to adjust the gauge with.

def count(name: String, tags: Label*): MetricAspect[Any]

A metric aspect that increments the specified counter each time the effect it is applied to succeeds.

A metric aspect that increments the specified counter each time the effect it is applied to succeeds.

def countErrors(name: String, tags: Label*): MetricAspect[Any]

A metric aspect that increments the specified counter each time the effect it is applied to fails.

A metric aspect that increments the specified counter each time the effect it is applied to fails.

def countValue(name: String, tags: Label*): MetricAspect[Double]

A metric aspect that increments the specified counter by a given value.

A metric aspect that increments the specified counter by a given value.

def countValueWith[A](name: String, tags: Label*)(f: A => Double): MetricAspect[A]

A metric aspect that increments the specified counter by a given value.

A metric aspect that increments the specified counter by a given value.

def observeDurations[A](name: String, boundaries: Chunk[Double], tags: Label*)(f: Duration => Double): MetricAspect[A]

A metric aspect that tracks how long the effect it is applied to takes to complete execution, recording the results in a histogram.

A metric aspect that tracks how long the effect it is applied to takes to complete execution, recording the results in a histogram.

def observeHistogram(name: String, boundaries: Chunk[Double], tags: Label*): MetricAspect[Double]

A metric aspect that adds a value to a histogram each time the effect it is applied to succeeds.

A metric aspect that adds a value to a histogram each time the effect it is applied to succeeds.

def observeHistogramWith[A](name: String, boundaries: Chunk[Double], tags: Label*)(f: A => Double): MetricAspect[A]

A metric aspect that adds a value to a histogram each time the effect it is applied to succeeds, using the specified function to transform the value returned by the effect to the value to add to the histogram.

A metric aspect that adds a value to a histogram each time the effect it is applied to succeeds, using the specified function to transform the value returned by the effect to the value to add to the histogram.

def observeSummary(name: String, maxAge: Duration, maxSize: Int, error: Double, quantiles: Chunk[Double], tags: Label*): MetricAspect[Double]

A metric aspect that adds a value to a summary each time the effect it is applied to succeeds.

A metric aspect that adds a value to a summary each time the effect it is applied to succeeds.

def observeSummaryWith[A](name: String, maxAge: Duration, maxSize: Int, error: Double, quantiles: Chunk[Double], tags: Label*)(f: A => Double): MetricAspect[A]

A metric aspect that adds a value to a summary each time the effect it is applied to succeeds, using the specified function to transform the value returned by the effect to the value to add to the summary.

A metric aspect that adds a value to a summary each time the effect it is applied to succeeds, using the specified function to transform the value returned by the effect to the value to add to the summary.

def occurrences(name: String, setTag: String, tags: Label*): MetricAspect[String]

A metric aspect that counts the number of occurrences of each distinct value returned by the effect it is applied to.

A metric aspect that counts the number of occurrences of each distinct value returned by the effect it is applied to.

def occurrencesWith[A](name: String, setTag: String, tags: Label*)(f: A => String): MetricAspect[A]

A metric aspect that counts the number of occurrences of each distinct value returned by the effect it is applied to, using the specified function to transform the value returned by the effect to the value to count the occurrences of.

A metric aspect that counts the number of occurrences of each distinct value returned by the effect it is applied to, using the specified function to transform the value returned by the effect to the value to count the occurrences of.

def setGauge(name: String, tags: Label*): MetricAspect[Double]

A metric aspect that sets a gauge each time the effect it is applied to succeeds.

A metric aspect that sets a gauge each time the effect it is applied to succeeds.

def setGaugeWith[A](name: String, tags: Label*)(f: A => Double): MetricAspect[A]

A metric aspect that sets a gauge each time the effect it is applied to succeeds, using the specified function to transform the value returned by the effect to the value to set the gauge to.

A metric aspect that sets a gauge each time the effect it is applied to succeeds, using the specified function to transform the value returned by the effect to the value to set the gauge to.