Atomic

class Atomic(val metric: BaseMetric[Histogram, ForDistributionInstrument, Distribution], val tags: TagSet, val dynamicRange: DynamicRange) extends BaseAtomicHdrHistogram with Histogram with BaseMetricAutoUpdate[Histogram, ForDistributionInstrument, Distribution]

Histogram implementation with thread safety guarantees. Instances of this class can be safely shared across threads and updated concurrently.

trait Histogram
class BaseAtomicHdrHistogram
trait HdrHistogramInternalState
class EncodableHistogram
class Object
trait Matchable
class Any

Value members

Concrete methods

override def record(value: Long): Histogram

Records one occurrence of the provided value. Keep in mind that the provided value will not be recorded as-is on the Histogram but will be rather adjusted to a bucket within the configured precision. By default, all Kamon histograms are configured to achieve up to 1% error margin across the entire range.

Records one occurrence of the provided value. Keep in mind that the provided value will not be recorded as-is on the Histogram but will be rather adjusted to a bucket within the configured precision. By default, all Kamon histograms are configured to achieve up to 1% error margin across the entire range.

Definition Classes
override def record(value: Long, times: Long): Histogram

Records several occurrences of the provided value. Keep in mind that the provided value will not be recorded as-is on the Histogram but will be rather adjusted to a bucket within the configured precision. By default, all Kamon histograms are configured to achieve up to 1% error margin across the entire range.

Records several occurrences of the provided value. Keep in mind that the provided value will not be recorded as-is on the Histogram but will be rather adjusted to a bucket within the configured precision. By default, all Kamon histograms are configured to achieve up to 1% error margin across the entire range.

Definition Classes

Inherited methods

def autoUpdate(consumer: Histogram => Unit, interval: Duration): Inst
Inherited from:
BaseMetricAutoUpdate
def autoUpdate(consumer: Histogram => Unit): Inst

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[Histogram], interval: Duration): Inst

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[Histogram]): Inst

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 defaultSchedule(): Unit
Inherited from:
BaseMetricAutoUpdate
def encodeIntoCompressedByteBuffer(x$0: ByteBuffer, x$1: Int): Int
Inherited from:
BaseAtomicHdrHistogram
def getAndSetFromCountsArray(x$0: Int, x$1: Long): Long
Inherited from:
BaseAtomicHdrHistogram
Inherited from:
BaseAtomicHdrHistogram
def getEndTimeStamp(): Long
Inherited from:
BaseAtomicHdrHistogram
def getFromCountsArray(x$0: Int): Long
Inherited from:
BaseAtomicHdrHistogram
Inherited from:
BaseAtomicHdrHistogram
def getMaxValueAsDouble(): Double
Inherited from:
BaseAtomicHdrHistogram
Inherited from:
BaseAtomicHdrHistogram
def getStartTimeStamp(): Long
Inherited from:
BaseAtomicHdrHistogram
Inherited from:
BaseAtomicHdrHistogram
Inherited from:
BaseAtomicHdrHistogram
def getTag(): String
Inherited from:
BaseAtomicHdrHistogram
def getUnitMagnitude(): Int
Inherited from:
BaseAtomicHdrHistogram
def recordValue(x$0: Long): Unit
Inherited from:
BaseAtomicHdrHistogram
def recordValueWithCount(x$0: Long, x$1: Long): Unit
Inherited from:
BaseAtomicHdrHistogram
def remove(): Boolean

Removes this instrument from the metric.

Removes this instrument from the metric.

Inherited from:
Instrument
def reset(): Unit
Inherited from:
BaseAtomicHdrHistogram
def setEndTimeStamp(x$0: Long): Unit
Inherited from:
BaseAtomicHdrHistogram
def setStartTimeStamp(x$0: Long): Unit
Inherited from:
BaseAtomicHdrHistogram
def setTag(x$0: String): Unit
Inherited from:
BaseAtomicHdrHistogram
def snapshot(resetState: Boolean): Distribution

Creates a snapshot for an instrument. If the resetState flag is set to true, the internal state of the instrument will be reset, if applicable.

Creates a snapshot for an instrument. If the resetState flag is set to true, the internal state of the instrument will be reset, if applicable.

Inherited from:
DistributionSnapshotBuilder (hidden)
override def withTag(key: String, value: Long): Inst

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.

Definition Classes
Inherited from:
Instrument
override def withTag(key: String, value: Boolean): Inst

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.

Definition Classes
Inherited from:
Instrument
override def withTag(key: String, value: String): Inst

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.

Definition Classes
Inherited from:
Instrument
override def withTags(tags: TagSet): Inst

Returns an instrument with additional tags from the provided TagSet.

Returns an instrument with additional tags from the provided TagSet.

Definition Classes
Inherited from:
Instrument

Concrete fields

Returns the metric to which this instrument belongs.

Returns the metric to which this instrument belongs.

Returns the tags used to create this instrument.

Returns the tags used to create this instrument.