MetricKey

final case class MetricKey[+Type]

A MetricKey is a unique key associated with each metric. The key is based on a combination of the metric type, the name and tags associated with the metric, and any other information to describe a a metric, such as the boundaries of a histogram. In this way, it is impossible to ever create different metrics with conflicting keys.

Companion:
object
trait Product
trait Equals
class Object
trait Matchable
class Any
MetricKey[Type]

Value members

Concrete methods

def tagged(key: String, value: String): MetricKey[Type]

Returns a new MetricKey with the specified tag appended.

Returns a new MetricKey with the specified tag appended.

def tagged(extraTag: MetricLabel, extraTags: MetricLabel*): MetricKey[Type]

Returns a new MetricKey with the specified tags appended.

Returns a new MetricKey with the specified tags appended.

def tagged(extraTags: Set[MetricLabel]): MetricKey[Type]

Returns a new MetricKey with the specified tags appended.

Returns a new MetricKey with the specified tags appended.

Inherited methods

def productElementNames: Iterator[String]
Inherited from:
Product
def productIterator: Iterator[Any]
Inherited from:
Product