Reporter

trait Reporter[F[_]]

A generic metrics reporter

Companion:
object
class Object
trait Matchable
class Any

Value members

Abstract methods

def counter(name: String, tags: Map[String, String]): F[Counter[F]]

Create a counter

Create a counter

Value parameters:
name

the counter's name

tags

tags associated with this counter

Returns:

an effect that evaluates to a counter instance

def gauge(name: String, tags: Map[String, String], initialValue: Int): F[Gauge[F]]

Create a gauge

Create a gauge

Value parameters:
name

the gauge's name

tags

tags associated with this gauge

Returns:

an effect that evaluates to a gauge instance

def summary(name: String, tags: Map[String, String], percentiles: Set[Double], baseUnit: Option[String]): F[DistributionSummary[F]]

Create a distribution summary to track the sample distribution of events. An example would be the response sizes for requests hitting an http server.

Create a distribution summary to track the sample distribution of events. An example would be the response sizes for requests hitting an http server.

Value parameters:
baseUnit

Base unit of the eventual distribution summary (eg. bytes).

name

the summary's name

percentiles

Produces an additional time series for each requested percentile. This percentile is computed locally, and so can't be aggregated with percentiles computed across other dimensions (e.g. in a different instance).

tags

tags associated with this summary

Returns:

an effect that evaluates to a distribution summary instance

def timer(name: String, tags: Map[String, String], percentiles: Set[Double]): F[Timer[F]]

Create a timer

Create a timer

Value parameters:
name

the timer's name

tags

tags associated with this timer

Returns:

an effect that evaluates to a timer instance