Counter

Instrument that tracks a monotonically increasing value.

Companion:
object
class Object
trait Matchable
class Any
class LongAdder

Value members

Abstract methods

Increments the counter by one.

Increments the counter by one.

def increment(times: Long): Counter

Increments the counter by the provided times.

Increments the counter by the provided times.

Inherited methods

def autoUpdate(consumer: Counter => Unit): Counter

Schedules a call to the provided consumer with a reference to this histogram as parameter. The schedule uses the default auto-update interval. See the kamon.metric.instrument-factory configuration settings for more details.

Schedules a call to the provided consumer with a reference to this histogram as parameter. The schedule uses the default auto-update interval. See the kamon.metric.instrument-factory configuration settings for more details.

Inherited from:
Instrument
def autoUpdate(consumer: Consumer[Counter], interval: Duration): Counter

Schedules a call to the provided consumer with a reference to this histogram as parameter, overriding the metric's auto-update interval.

Schedules a call to the provided consumer with a reference to this histogram as parameter, overriding the metric's auto-update interval.

Inherited from:
Instrument
def autoUpdate(consumer: Consumer[Counter]): Counter

Schedules a call to the provided consumer with a reference to this histogram as parameter. The schedule uses the default auto-update interval. See the kamon.metric.instrument-factory configuration settings for more details.

Schedules a call to the provided consumer with a reference to this histogram as parameter. The schedule uses the default auto-update interval. See the kamon.metric.instrument-factory configuration settings for more details.

Inherited from:
Instrument
def autoUpdate(consumer: Counter => Unit, interval: Duration): Counter

Schedules a call to the provided consumer with a reference to this histogram as parameter, overriding the metric's auto-update interval.

Schedules a call to the provided consumer with a reference to this histogram as parameter, overriding the metric's auto-update interval.

Inherited from:
Instrument

Returns the metric to which this instrument belongs.

Returns the metric to which this instrument belongs.

Inherited from:
Instrument
def remove(): Boolean

Removes this instrument from the metric.

Removes this instrument from the metric.

Inherited from:
Instrument

Returns the tags used to create this instrument.

Returns the tags used to create this instrument.

Inherited from:
Instrument
override def withTag(key: String, value: Long): Counter
Definition Classes
Inherited from:
Instrument
override def withTag(key: String, value: Boolean): Counter
Definition Classes
Inherited from:
Instrument
override def withTag(key: String, value: String): Counter
Definition Classes
Inherited from:
Instrument
override def withTags(tags: TagSet): Counter
Definition Classes
Inherited from:
Instrument