MetricInspection
object MetricInspection
Utility functions to extract tags and instrument information from metrics. These utilities are only meant to be used for testing purposes.
Type members
Value members
Concrete methods
def instruments[Inst <: Instrument[LazyRef(...), Sett], Sett <: Settings](metric: Metric[Inst, Sett]): Map[TagSet, Inst]
Returns all instruments currently registered for the inspected metric.
Returns all instruments currently registered for the inspected metric.
def instruments[Inst <: Instrument[LazyRef(...), Sett], Sett <: Settings](metric: Metric[Inst, Sett], tags: TagSet): Map[TagSet, Inst]
Returns all instruments that contain at least the provided tags for the inspected metric.
Returns all instruments that contain at least the provided tags for the inspected metric.
def tagValues[Inst <: Instrument[LazyRef(...), Sett], Sett <: Settings](metric: Metric[Inst, Sett], key: String): Seq[String]
Returns all values for a given tag across all instruments of the inspected metric.
Returns all values for a given tag across all instruments of the inspected metric.