diff options
Diffstat (limited to 'kamon-core/src/main/scala/kamon/metric/instrument')
-rw-r--r-- | kamon-core/src/main/scala/kamon/metric/instrument/Histogram.scala | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kamon-core/src/main/scala/kamon/metric/instrument/Histogram.scala b/kamon-core/src/main/scala/kamon/metric/instrument/Histogram.scala index 8c81e717..9ce11f49 100644 --- a/kamon-core/src/main/scala/kamon/metric/instrument/Histogram.scala +++ b/kamon-core/src/main/scala/kamon/metric/instrument/Histogram.scala @@ -35,10 +35,14 @@ object Histogram { new HdrHistogram(1L, highestTrackableValue, precision.significantDigits, scale) def fromConfig(config: Config): Histogram = { + fromConfig(config, Scale.Unit) + } + + def fromConfig(config: Config, scale: Scale): Histogram = { val highest = config.getLong("highest-trackable-value") val significantDigits = config.getInt("significant-value-digits") - new HdrHistogram(1L, highest, significantDigits) + new HdrHistogram(1L, highest, significantDigits, scale) } object HighestTrackableValue { |