MetricInspection

kamon.testkit.MetricInspection

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

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Type members

Classlikes

object Syntax extends Syntax

Attributes

Companion
trait
Supertypes
trait Syntax
class Object
trait Matchable
class Any
Self type
Syntax.type
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.

Attributes

Companion
object
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Syntax.type

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.

Attributes

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.

Attributes

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.

Attributes