MetricKey

zio.metrics.MetricKey
See theMetricKey companion object
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.

Attributes

Companion
object
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type
MetricKey[Type]

Members list

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.

Attributes

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.

Attributes

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.

Attributes

Inherited methods

Attributes

Inherited from:
Product

Attributes

Inherited from:
Product