Tagging

trait Tagging[I]

Describes the tagging operations that can be performed on an metric or instrument instance. The tags on the returned instrument are the result of combining any existent tags on the instrument with the newly provided tags, overriding previous tags if needed.

Since metrics do not have tags themselves (only instruments do), the returned instruments of tagging operations on metrics only have the provided tags.

class Object
trait Matchable
class Any
trait Instrument[Inst, Sett]
trait Counter
class LongAdder
trait Gauge
class Volatile
trait Histogram
class Atomic
class Atomic
trait Timer
class Atomic
trait Metric[Inst, Sett]
class BaseMetric[Inst, Sett, Snap]
trait Counter
trait Gauge
trait Histogram
trait Timer
trait Started

Value members

Abstract methods

def withTag(key: String, value: String): I

Returns an instrument with one additional tag defined by the provided key and value pair.

Returns an instrument with one additional tag defined by the provided key and value pair.

def withTag(key: String, value: Boolean): I

Returns an instrument with one additional tag defined by the provided key and value pair.

Returns an instrument with one additional tag defined by the provided key and value pair.

def withTag(key: String, value: Long): I

Returns an instrument with one additional tag defined by the provided key and value pair.

Returns an instrument with one additional tag defined by the provided key and value pair.

def withTags(tags: TagSet): I

Returns an instrument with additional tags from the provided TagSet.

Returns an instrument with additional tags from the provided TagSet.