LabelledMetricP

trait LabelledMetricP[R, E, P, M]

Helper to create strongly typed Prometheus labelled metrics.

Metrics are defined with a list of labels whose length is statically known. Operations on the metric (increment a counter for instance), require to pass a list of label values with the same length.

class Object
trait Matchable
class Any
object Histogram
object Summary

Type members

Types

type Labelled[L <: LabelList] = L => M

Value members

Concrete methods

def apply(name: String, p: P, help: Option[String]): ZIO[R, E, M]
def apply[L <: LabelList](name: String, p: P, help: Option[String], labels: L): ZIO[R, E, () => L]