<commit_before>package com.wavesplatform.metrics

import com.wavesplatform.database.Key
import kamon.Kamon
import kamon.metric.{HistogramMetric, MeasurementUnit}

object LevelDBStats {
  implicit class DbHistogramExt(val h: HistogramMetric) {
    def recordTagged(key: Key[_], value: Array[Byte]): Unit = recordTagged(key.name, value)

    def recordTagged(tag: String, value: Array[Byte]): Unit =
      h.refine("key", tag).record(Option(value).map(_.length.toLong).getOrElse(0))
  }

  val read  = Kamon.histogram("db.read", MeasurementUnit.information.kilobytes)
  val write = Kamon.histogram("db.write", MeasurementUnit.information.kilobytes)
}
<commit_msg>NODE-1238 Fixed Kamon histogram names<commit_after>package com.wavesplatform.metrics

import com.wavesplatform.database.Key
import kamon.Kamon
import kamon.metric.{HistogramMetric, MeasurementUnit}

object LevelDBStats {
  implicit class DbHistogramExt(val h: HistogramMetric) {
    def recordTagged(key: Key[_], value: Array[Byte]): Unit = recordTagged(key.name, value)

    def recordTagged(tag: String, value: Array[Byte]): Unit =
      h.refine("key", tag).record(Option(value).map(_.length.toLong).getOrElse(0))
  }

  val read  = Kamon.histogram("node.db.read", MeasurementUnit.information.bytes)
  val write = Kamon.histogram("node.db.write", MeasurementUnit.information.bytes)
}

{'fraction_non_alphanumeric': 0.12685459940652818, 'fraction_numerical': 0.004451038575667656, 'mean_word_length': 5.612745098039215, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6539042', 'n_tokens_mistral': 455, 'n_tokens_neox': 424, 'n_words': 84}