MetricInspection

Utility functions to extract tags and instrument information from metrics. These utilities are only meant to be used for testing purposes.

class Object
trait Matchable
class Any

Type members

Classlikes

object Syntax extends Syntax
Companion:
class
trait Syntax

Exposes an implicitly available syntax for inspecting tags and instruments from a metric.

Exposes an implicitly available syntax for inspecting tags and instruments from a metric.

Companion:
object

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.