MetricFactory

Creates new metric instances taking default and custom settings into account. This class only handles the creation and configuration of metrics and does not do any effort on checking whether a metric has already been created or not; that kind of verification is handled on the Kamon metric registry.

Companion:
object
class Object
trait Matchable
class Any

Value members

Concrete methods

def counter(name: String, description: Option[String], unit: Option[MeasurementUnit], autoUpdateInterval: Option[Duration]): BaseMetric[Counter, ForValueInstrument, Long] & Counter

Creates a new counter-based metric, backed by the Counter.LongAdder implementation.

Creates a new counter-based metric, backed by the Counter.LongAdder implementation.

def gauge(name: String, description: Option[String], unit: Option[MeasurementUnit], autoUpdateInterval: Option[Duration]): BaseMetric[Gauge, ForValueInstrument, Double] & Gauge

Creates a new counter-based metric, backed by the Counter.LongAdder implementation.

Creates a new counter-based metric, backed by the Counter.LongAdder implementation.

def histogram(name: String, description: Option[String], unit: Option[MeasurementUnit], dynamicRange: Option[DynamicRange], autoUpdateInterval: Option[Duration]): BaseMetric[Histogram, ForDistributionInstrument, Distribution] & Histogram

Creates a new histogram-based metric, backed by the Histogram.Atomic implementation.

Creates a new histogram-based metric, backed by the Histogram.Atomic implementation.

def rangeSampler(name: String, description: Option[String], unit: Option[MeasurementUnit], dynamicRange: Option[DynamicRange], autoUpdateInterval: Option[Duration]): BaseMetric[RangeSampler, ForDistributionInstrument, Distribution] & RangeSampler

Creates a new histogram-based metric, backed by the Histogram.Atomic implementation.

Creates a new histogram-based metric, backed by the Histogram.Atomic implementation.

def timer(name: String, description: Option[String], unit: Option[MeasurementUnit], dynamicRange: Option[DynamicRange], autoUpdateInterval: Option[Duration]): BaseMetric[Timer, ForDistributionInstrument, Distribution] & Timer

Creates a new histogram-based metric, backed by the Histogram.Atomic implementation.

Creates a new histogram-based metric, backed by the Histogram.Atomic implementation.